Make RBDM/WATR explosion work again, by not killing fire created by WATR

This commit is contained in:
jacksonmj 2012-01-20 22:48:46 +08:00 committed by Simon Robertshaw
parent 748a528fe0
commit 32c9ff3099
3 changed files with 5 additions and 2 deletions

View File

@ -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);

View File

@ -18,8 +18,9 @@ int update_WATR(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);

View File

@ -13,6 +13,7 @@ int update_WTRV(UPDATE_FUNC_ARGS) {
{
part_change_type(i,x,y,PT_FIRE);
parts[i].life = 4;
parts[i].ctype = PT_WATR;
}
}
if(parts[i].temp>1273&&parts[i].ctype==PT_FIRE)