From 3335172888d275ba4a558cb9cc75ae7ded05b627 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Wed, 15 Aug 2012 23:50:39 +0100 Subject: [PATCH] Correct proportions of CO2 and WATR when GEL/SPNG is absorbing BUBW --- src/elements/gel.c | 5 +---- src/elements/spng.c | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/elements/gel.c b/src/elements/gel.c index 828761689..b3323b4e3 100644 --- a/src/elements/gel.c +++ b/src/elements/gel.c @@ -51,10 +51,7 @@ int update_GEL(UPDATE_FUNC_ARGS) { if (((r&0xFF)==PT_CBNW) && parts[i].tmp<100) { 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); } if ((r&0xFF)==PT_SPNG && parts[i].tmp<100 && ((parts[r>>8].life+1)>parts[i].tmp)) diff --git a/src/elements/spng.c b/src/elements/spng.c index b99d12b50..d5ef9a9c4 100644 --- a/src/elements/spng.c +++ b/src/elements/spng.c @@ -42,10 +42,7 @@ int update_SPNG(UPDATE_FUNC_ARGS) { if ((r&0xFF)==PT_CBNW&&33>=rand()/(RAND_MAX/100)+1) { 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) {