diff options
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -718,7 +718,7 @@ int parse_save(void *save, int size, int replace, int x0, int y0) ttv |= (d[p++]); parts[i-1].tmp = ttv; if(ptypes[parts[i-1].type].properties&PROP_LIFE && !parts[i-1].tmp) - for(q = 1; q<NGOL ; q++) { + for(q = 1; q<=NGOL ; q++) { if(parts[i-1].type==goltype[q-1] && grule[q][9]==2) parts[i-1].tmp = grule[q][9]-1; } @@ -2504,12 +2504,12 @@ int main(int argc, char *argv[]) return 0; } int process_command(pixel *vid_buf,char *console,char *console_error) { //TODO: delete with coords, have 'set' work with coords as well - -int nx,ny,i,j; -char *console2; -char *console3; -char *console4; -char *console5; + + int nx,ny,i,j; + char *console2; + char *console3; + char *console4; + char *console5; //sprintf(console_error, "%s", console); if(console && strcmp(console, "")!=0 && strncmp(console, " ", 1)!=0) { @@ -2566,7 +2566,7 @@ char *console5; if(ny < 0 || nx < 0 || ny > YRES || nx > XRES) sprintf(console_error, "Invalid Coordinates", console2); else - create_part(-1,nx,ny,j); + create_part(-1,nx,ny,j); } else if(strcmp(console2, "reset")==0 && console3) { @@ -2811,5 +2811,5 @@ char *console5; sprintf(console_error, "Invalid Command", console2); } return 1; - } +} |
