diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-28 11:40:18 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-28 11:40:18 (GMT) |
| commit | 5ded005b0c17d8e4c1799733ee63810c9e9f7976 (patch) | |
| tree | 9e4a6314558483a9db5319cc488b687f65c9c326 /src/simulation/elements/GEL.cpp | |
| parent | 91ec4d112567e54a7427e0c16ee14395d3d813f5 (diff) | |
| download | powder-5ded005b0c17d8e4c1799733ee63810c9e9f7976.zip powder-5ded005b0c17d8e4c1799733ee63810c9e9f7976.tar.gz | |
Correct proportions of CO2 and WATR when GEL/SPNG is absorbing BUBW
Diffstat (limited to 'src/simulation/elements/GEL.cpp')
| -rw-r--r-- | src/simulation/elements/GEL.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/simulation/elements/GEL.cpp b/src/simulation/elements/GEL.cpp index b42c4ba..a51eddd 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)) |
