summaryrefslogtreecommitdiff
path: root/src/elements/cbnw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/cbnw.c')
-rw-r--r--src/elements/cbnw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/elements/cbnw.c b/src/elements/cbnw.c
index 62655cf..95db27e 100644
--- a/src/elements/cbnw.c
+++ b/src/elements/cbnw.c
@@ -76,8 +76,9 @@ int update_CBNW(UPDATE_FUNC_ARGS) {
{
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){
kill_part(r>>8);
if(1>(rand()%150)){
kill_part(i);