diff options
| author | Simon <simon@hardwired.org.uk> | 2011-01-05 20:36:09 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2011-01-05 20:36:09 (GMT) |
| commit | a46a484f2eececfb79bd7f5dd2e3456eeb77c192 (patch) | |
| tree | 4c3c5ac6bd4a3848f151257fb5ca17bb26005207 /src/powder.c | |
| parent | e2d4ae576355626ea07aa83db817bd0104dd7e6c (diff) | |
| download | powder-a46a484f2eececfb79bd7f5dd2e3456eeb77c192.zip powder-a46a484f2eececfb79bd7f5dd2e3456eeb77c192.tar.gz | |
Fix acid drawing and 'purple acid'
Diffstat (limited to 'src/powder.c')
| -rw-r--r-- | src/powder.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/powder.c b/src/powder.c index a7f8a3e..ec6ac33 100644 --- a/src/powder.c +++ b/src/powder.c @@ -2495,13 +2495,13 @@ void update_particles_i(pixel *vid, int start, int inc) } else if(((r&0xFF)!=PT_CLNE && (r&0xFF)!=PT_PCLN && ptypes[parts[r>>8].type].hardness>(rand()%1000))&&parts[i].life>=50) { - if(parts_avg(i, r>>8,PT_GLAS)!= PT_GLAS) - { - parts[i].life--; - parts[r>>8].type = PT_NONE; - } + if(parts_avg(i, r>>8,PT_GLAS)!= PT_GLAS) + { + parts[i].life--; + parts[r>>8].type = PT_NONE; + } } - else if (parts[i].life==50) + else if (parts[i].life<=50) { parts[i].life = 0; t = parts[i].type = PT_NONE; |
