Finally, water puts out fire

This commit is contained in:
Simon Robertshaw 2011-08-25 22:10:24 +01:00
parent 951a396e60
commit e06d68d63a
3 changed files with 21 additions and 0 deletions

View File

@ -27,6 +27,13 @@ int update_DSTW(UPDATE_FUNC_ARGS) {
part_change_type(i,x,y,PT_FIRE); part_change_type(i,x,y,PT_FIRE);
parts[i].life = 4; parts[i].life = 4;
} }
if ((r&0xFF)==PT_FIRE){
kill_part(r>>8);
if(1>(rand()%150)){
kill_part(i);
return 1;
}
}
} }
return 0; return 0;
} }

View File

@ -18,6 +18,13 @@ int update_SLTW(UPDATE_FUNC_ARGS) {
part_change_type(i,x,y,PT_FIRE); part_change_type(i,x,y,PT_FIRE);
parts[i].life = 4; parts[i].life = 4;
} }
if ((r&0xFF)==PT_FIRE){
kill_part(r>>8);
if(1>(rand()%150)){
kill_part(i);
return 1;
}
}
} }
return 0; return 0;
} }

View File

@ -19,6 +19,13 @@ int update_WATR(UPDATE_FUNC_ARGS) {
part_change_type(i,x,y,PT_FIRE); part_change_type(i,x,y,PT_FIRE);
parts[i].life = 4; parts[i].life = 4;
} }
if ((r&0xFF)==PT_FIRE){
kill_part(r>>8);
if(1>(rand()%150)){
kill_part(i);
return 1;
}
}
/*if ((r&0xFF)==PT_CNCT && 1>(rand()%500)) Concrete+Water to paste, not very popular /*if ((r&0xFF)==PT_CNCT && 1>(rand()%500)) Concrete+Water to paste, not very popular
{ {
part_change_type(i,x,y,PT_PSTE); part_change_type(i,x,y,PT_PSTE);