diff options
| author | Cracker64 <cracker642@gmail.com> | 2011-01-01 06:01:19 (GMT) |
|---|---|---|
| committer | Cracker64 <cracker642@gmail.com> | 2011-01-01 06:01:19 (GMT) |
| commit | 28f1b88ea09be8da1c363122b49eaa724b204659 (patch) | |
| tree | 1c79a07b76802b670740b196938d8171ee5834a7 /src | |
| parent | 6519fc167ec664521a5c15fabde72ac8f2658640 (diff) | |
| download | powder-28f1b88ea09be8da1c363122b49eaa724b204659.zip powder-28f1b88ea09be8da1c363122b49eaa724b204659.tar.gz | |
fix INST crash, forgot to change PCLN to work with all GoL.
Diffstat (limited to 'src')
| -rw-r--r-- | src/powder.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/powder.c b/src/powder.c index 13b01b7..5409ee9 100644 --- a/src/powder.c +++ b/src/powder.c @@ -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(ny=-1; ny<2; ny++) { 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. { - create_part(-2, x, y, c); + if(create_part(-2, x, y, c)==-1) + f = 1; } else for(j=-ry; j<=ry; j++) |
