diff --git a/src/simulation/elements/GEL.cpp b/src/simulation/elements/GEL.cpp index b42c4ba12..a51eddd8e 100644 --- a/src/simulation/elements/GEL.cpp +++ b/src/simulation/elements/GEL.cpp @@ -82,10 +82,7 @@ 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); + sim->part_change_type(r>>8, x+rx, y+ry, PT_CO2); } if ((r&0xFF)==PT_SPNG && parts[i].tmp<100 && ((parts[r>>8].life+1)>parts[i].tmp)) diff --git a/src/simulation/elements/SPNG.cpp b/src/simulation/elements/SPNG.cpp index dc4c71147..712f7276e 100644 --- a/src/simulation/elements/SPNG.cpp +++ b/src/simulation/elements/SPNG.cpp @@ -75,10 +75,7 @@ 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); + sim->part_change_type(r>>8, x+rx, y+ry, PT_CO2); } if ((r&0xFF)==PT_PSTE&&33>=rand()/(RAND_MAX/100)+1) {