fix INST crash, forgot to change PCLN to work with all GoL.

This commit is contained in:
Cracker64 2011-01-01 01:01:19 -05:00
parent 6519fc167e
commit 28f1b88ea0

View File

@ -4882,7 +4882,7 @@ killed:
} }
} }
} }
else if(parts[i].ctype>77&&parts[i].ctype<77+NGOL) { else if(ptypes[parts[i].ctype].properties&PROP_LIFE) {
for(nx=-1; nx<2; nx++) { for(nx=-1; nx<2; nx++) {
for(ny=-1; ny<2; ny++) { for(ny=-1; ny<2; ny++) {
create_part(-1, x+nx, y+ny, parts[i].ctype); create_part(-1, x+nx, y+ny, parts[i].ctype);
@ -6071,7 +6071,8 @@ int create_parts(int x, int y, int rx, int ry, int c)
} }
if(rx==0&&ry==0)//workaround for 1pixel brush/floodfill crashing. todo: find a better fix later. if(rx==0&&ry==0)//workaround for 1pixel brush/floodfill crashing. todo: find a better fix later.
{ {
create_part(-2, x, y, c); if(create_part(-2, x, y, c)==-1)
f = 1;
} }
else else
for(j=-ry; j<=ry; j++) for(j=-ry; j<=ry; j++)