Correct proportions of CO2 and WATR when GEL/SPNG is absorbing BUBW

This commit is contained in:
Simon Robertshaw 2012-08-28 12:40:18 +01:00
parent 91ec4d1125
commit 5ded005b0c
2 changed files with 2 additions and 8 deletions

View File

@ -82,9 +82,6 @@ int Element_GEL::update(UPDATE_FUNC_ARGS)
if (((r&0xFF)==PT_CBNW) && parts[i].tmp<100) if (((r&0xFF)==PT_CBNW) && parts[i].tmp<100)
{ {
parts[i].tmp++; parts[i].tmp++;
if (rand()%4)
sim->kill_part(r>>8);
else
sim->part_change_type(r>>8, x+rx, y+ry, PT_CO2); sim->part_change_type(r>>8, x+rx, y+ry, PT_CO2);
} }

View File

@ -75,9 +75,6 @@ int Element_SPNG::update(UPDATE_FUNC_ARGS)
if ((r&0xFF)==PT_CBNW&&33>=rand()/(RAND_MAX/100)+1) if ((r&0xFF)==PT_CBNW&&33>=rand()/(RAND_MAX/100)+1)
{ {
parts[i].life++; parts[i].life++;
if (rand()%4)
sim->kill_part(r>>8);
else
sim->part_change_type(r>>8, x+rx, y+ry, PT_CO2); sim->part_change_type(r>>8, x+rx, y+ry, PT_CO2);
} }
if ((r&0xFF)==PT_PSTE&&33>=rand()/(RAND_MAX/100)+1) if ((r&0xFF)==PT_PSTE&&33>=rand()/(RAND_MAX/100)+1)