summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPhilip <philip@philip-linuxlaptop.(none)>2010-11-06 01:25:02 (GMT)
committer Philip <philip@philip-linuxlaptop.(none)>2010-11-06 01:25:02 (GMT)
commita23d46a9f6e612a51f9dfa5e0f6a578953da6757 (patch)
tree26a1a1fd85367803b800a7f3703d1a9fc8159beb /src/main.c
parent068076a4aeaa444e72b44f716172e4e583953e2d (diff)
downloadpowder-a23d46a9f6e612a51f9dfa5e0f6a578953da6757.zip
powder-a23d46a9f6e612a51f9dfa5e0f6a578953da6757.tar.gz
GOL works 100% now. todo: make some way to set GSPEED from ingame, and is the number of frames per generation.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 36efa88..75e1912 100644
--- a/src/main.c
+++ b/src/main.c
@@ -104,7 +104,7 @@ int FPSB = 0;
int MSIGN =-1;
int NGOL = 0;
int CGOL = 0;
-int GSPEED = 1;
+int GSPEED = 0;
sign signs[MAXSIGNS];
@@ -521,6 +521,8 @@ int parse_save(void *save, int size, int replace, int x0, int y0)
{
k = pmap[y][x]>>8;
parts[k].type = j;
+ if(j ==PT_GOL)
+ gol[x][y] = 1;
if(j == PT_PHOT)
parts[k].ctype = 0x3fffffff;
parts[k].x = (float)x;