summaryrefslogtreecommitdiff
path: root/src/elements/cbnw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/cbnw.cpp')
-rw-r--r--src/elements/cbnw.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/elements/cbnw.cpp b/src/elements/cbnw.cpp
index 37625b0..b480ed5 100644
--- a/src/elements/cbnw.cpp
+++ b/src/elements/cbnw.cpp
@@ -76,8 +76,9 @@ int update_CBNW(UPDATE_FUNC_ARGS) {
{
sim->part_change_type(i,x,y,PT_FIRE);
parts[i].life = 4;
+ parts[i].ctype = PT_WATR;
}
- if ((r&0xFF)==PT_FIRE){
+ if ((r&0xFF)==PT_FIRE && parts[r>>8].ctype!=PT_WATR){
sim->kill_part(r>>8);
if(1>(rand()%150)){
sim->kill_part(i);