summaryrefslogtreecommitdiff
path: root/src/powder.c
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2010-12-22 18:17:06 (GMT)
committer Simon <simon@hardwired.org.uk>2010-12-22 18:17:06 (GMT)
commitbd9b01c3e21bde2065193a48bd7d4f9678de765e (patch)
tree14e4800b2a4e5a3ea7ed627f6eb201f85a06b7f2 /src/powder.c
parent69b0aa9eccbdbf947b84d2a4e09a18e68e947664 (diff)
parent321c57058105a473b59e858c67cfa878a6e20d41 (diff)
downloadpowder-bd9b01c3e21bde2065193a48bd7d4f9678de765e.zip
powder-bd9b01c3e21bde2065193a48bd7d4f9678de765e.tar.gz
Cracker Merge
Diffstat (limited to 'src/powder.c')
-rw-r--r--src/powder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/powder.c b/src/powder.c
index be1c7cd..71dee15 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -2794,7 +2794,7 @@ void update_particles_i(pixel *vid, int start, int inc)
{
create_part(-1, x , y-1 , PT_FWRK);
r = pmap[y-1][x];
- if(parts[r>>8].type==PT_FWRK)
+ if((r&0xFF)==PT_FWRK)
{
parts[r>>8].vy = rand()%8-22;
parts[r>>8].vx = rand()%20-rand()%20;
@@ -3054,7 +3054,7 @@ void update_particles_i(pixel *vid, int start, int inc)
r = pmap[y+ny][x+nx];
if((r>>8)>=NPART || !r)
continue;
- else if(parts[r>>8].type==PT_SPRK&&(parts[r>>8].ctype==PT_PSCN)&&(parts[r>>8].life>=3)&&parts[i].life%4==0)
+ else if(parts[r>>8].type==PT_SPRK&&(parts[r>>8].ctype==PT_PSCN)&&(parts[r>>8].life>=3)&&parts[i].life%4==0&&parts_avg(i,r>>8,PT_INSL)!=PT_INSL)
{
flood_parts(x,y,PT_SPRK,PT_INST,-1);//add life
parts[r>>8].type==parts[r>>8].ctype;