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

This commit is contained in:
jacksonmj
2012-08-15 23:50:39 +01:00
parent 8d6e0a835e
commit 3335172888
2 changed files with 2 additions and 8 deletions

View File

@@ -51,9 +51,6 @@ int update_GEL(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)
kill_part(r>>8);
else
part_change_type(r>>8, x+rx, y+ry, PT_CO2); part_change_type(r>>8, x+rx, y+ry, PT_CO2);
} }

View File

@@ -42,9 +42,6 @@ int update_SPNG(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)
kill_part(r>>8);
else
part_change_type(r>>8, x+rx, y+ry, PT_CO2); 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)