Make PTCT/NTCT cool down even when covered with spark

Also fix typo in update_PHOT
This commit is contained in:
jacksonmj 2011-02-03 00:08:56 +00:00
parent 9d716cba47
commit 8aaaae1daf
2 changed files with 6 additions and 2 deletions

View File

@ -6,8 +6,8 @@ int update_PHOT(UPDATE_FUNC_ARGS) {
if (1>rand()%10) update_PYRO(UPDATE_FUNC_SUBCALL_ARGS);
for (rx=-1; rx<2; rx++)
for (ry=-1; ry<2; ry++)
if (x+rx>=0 && y+ry>0 && x+rx<XRES && y+ry<YRES && (rx || ry)) {
r = pmap[x+rx][y+ry];
if (x+rx>=0 && y+ry>=0 && x+rx<XRES && y+ry<YRES && (rx || ry)) {
r = pmap[y+ry][x+rx];
if ((r>>8)>=NPART || !r)
continue;
if ((r&0xFF)==PT_ISOZ && 5>(rand()%2000))

View File

@ -25,6 +25,10 @@ int update_SPRK(UPDATE_FUNC_ARGS) {
kill_part(i);
return 1;
}
else if (ct==PT_NTCT || ct==PT_PTCT)
{
update_NPTCT(UPDATE_FUNC_SUBCALL_ARGS);
}
else if (ct==PT_ETRD&&parts[i].life==1)
{
nearp = nearest_part(i, PT_ETRD);