summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilip <philip@philip-linuxlaptop.(none)>2010-11-06 01:31:06 (GMT)
committer Philip <philip@philip-linuxlaptop.(none)>2010-11-06 01:31:06 (GMT)
commit76bfb3cc8ae83d6b3804010925d6f3ac02b9b8d0 (patch)
tree98014ba274967bd1acbae17cd4ba99d79ac5703f /src
parenta23d46a9f6e612a51f9dfa5e0f6a578953da6757 (diff)
downloadpowder-76bfb3cc8ae83d6b3804010925d6f3ac02b9b8d0.zip
powder-76bfb3cc8ae83d6b3804010925d6f3ac02b9b8d0.tar.gz
git is weird...
Diffstat (limited to 'src')
-rw-r--r--src/powder.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/powder.c b/src/powder.c
index 1d55a18..2c49d1c 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -824,10 +824,11 @@ void update_particles_i(pixel *vid, int start, int inc)
int starti = (start*-1);
if(sys_pause&&!framerender)
return;
- gol2[0][0] = 3;
+ if(CGOL>=GSPEED)
for(nx=0;nx<XRES;nx++)
for(ny=0;ny<YRES;ny++)
{
+ CGOL=0;
r = pmap[ny][nx];
if((r>>8)>=NPART || !r)
{
@@ -858,7 +859,8 @@ void update_particles_i(pixel *vid, int start, int inc)
parts[r>>8].type = PT_NONE;
gol2[nx][ny] = 0;
}
- /*gol[0][0] = 3; other gol code, still has glitch
+ CGOL++;
+ /*gol[0][0] = 3; other gol code
if(CGOL>=GSPEED)
{
CGOL = 0;