diff options
| author | Alex <zc00gii@gmail.com> | 2010-09-26 23:22:27 (GMT) |
|---|---|---|
| committer | Alex <zc00gii@gmail.com> | 2010-09-26 23:22:27 (GMT) |
| commit | 5b9e55436092711d862ecfc4b7fcdd69d93b75f4 (patch) | |
| tree | 856a75ac1f14fb81c32720866a739d31d4c4a9f4 | |
| parent | 82764a9dac9236ba4daf6d61626335de70cfabf7 (diff) | |
| download | powder-5b9e55436092711d862ecfc4b7fcdd69d93b75f4.zip powder-5b9e55436092711d862ecfc4b7fcdd69d93b75f4.tar.gz | |
fixed BCOL and COAL bug
| -rw-r--r-- | powder.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -962,7 +962,7 @@ void update_particles_i(pixel *vid, int start, int inc) create_part(-1, x, y, PT_FIRE); goto killed; } else if(parts[i].life < 100) { - parts[i].life; + parts[i].life--; create_part(-1, x+rand()%3-1, y+rand()%3-1, PT_FIRE); } if((pv[y/CELL][x/CELL] > 4.3f)&&parts[i].tmp>40) @@ -999,7 +999,7 @@ void update_particles_i(pixel *vid, int start, int inc) create_part(-1, x, y, PT_FIRE); goto killed; } else if(parts[i].life < 100) { - parts[i].life; + parts[i].life--; create_part(-1, x+rand()%3-1, y+rand()%3-1, PT_FIRE); } |
