summaryrefslogtreecommitdiff
path: root/src/powder.c
diff options
context:
space:
mode:
authorCracker64 <cracker642@gmail.com>2010-12-29 14:44:12 (GMT)
committer Cracker64 <cracker642@gmail.com>2010-12-29 14:44:12 (GMT)
commit25b95e211e5c38e29798bfb6be9c5656d9a408d7 (patch)
treeb8e275239da97b546612ee6dedb487a4a0092197 /src/powder.c
parent761ea03882fd779cc77ac7cb49ff59bbfe94b51e (diff)
downloadpowder-25b95e211e5c38e29798bfb6be9c5656d9a408d7.zip
powder-25b95e211e5c38e29798bfb6be9c5656d9a408d7.tar.gz
new display, Life, shows life in a grayscale gradient, will ONLY show up in debug mode, on shift-1, fix filt floodfill, portal has bigger storage, other fixes.
Diffstat (limited to 'src/powder.c')
-rw-r--r--src/powder.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/powder.c b/src/powder.c
index 2c7944e..8e7a4ea 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -986,6 +986,7 @@ inline int parts_avg(int ci, int ni,int t)
else
return PT_NONE;
}
+ return PT_NONE;
}
@@ -3165,7 +3166,7 @@ void update_particles_i(pixel *vid, int start, int inc)
if((r>>8)>=NPART || !r)
continue;
if(parts[r>>8].type==PT_SPRK || (parts[r>>8].type!=PT_PRTI && parts[r>>8].type!=PT_PRTO && (ptypes[parts[r>>8].type].falldown!= 0 || pstates[parts[r>>8].type].state == ST_GAS)))
- for( nnx=0;nnx<8;nnx++)
+ for( nnx=0;nnx<80;nnx++)
if(!portal[parts[i].tmp][count-1][nnx])
{
portal[parts[i].tmp][count-1][nnx] = parts[r>>8].type;
@@ -3196,7 +3197,7 @@ void update_particles_i(pixel *vid, int start, int inc)
continue;
if(!r)
{
- for( nnx =0 ;nnx<8;nnx++)
+ for( nnx =0 ;nnx<80;nnx++)
{
int randomness = count + rand()%3-1;
if(randomness<1)