Correct proportions of CO2 and WATR when GEL/SPNG is absorbing BUBW
This commit is contained in:
parent
91ec4d1125
commit
5ded005b0c
@ -82,9 +82,6 @@ int Element_GEL::update(UPDATE_FUNC_ARGS)
|
||||
if (((r&0xFF)==PT_CBNW) && parts[i].tmp<100)
|
||||
{
|
||||
parts[i].tmp++;
|
||||
if (rand()%4)
|
||||
sim->kill_part(r>>8);
|
||||
else
|
||||
sim->part_change_type(r>>8, x+rx, y+ry, PT_CO2);
|
||||
}
|
||||
|
||||
|
@ -75,9 +75,6 @@ int Element_SPNG::update(UPDATE_FUNC_ARGS)
|
||||
if ((r&0xFF)==PT_CBNW&&33>=rand()/(RAND_MAX/100)+1)
|
||||
{
|
||||
parts[i].life++;
|
||||
if (rand()%4)
|
||||
sim->kill_part(r>>8);
|
||||
else
|
||||
sim->part_change_type(r>>8, x+rx, y+ry, PT_CO2);
|
||||
}
|
||||
if ((r&0xFF)==PT_PSTE&&33>=rand()/(RAND_MAX/100)+1)
|
||||
|
Loading…
Reference in New Issue
Block a user