mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-01 06:00:15 +02:00
Make RBDM/WATR explosion work again, by not killing fire created by WATR
This commit is contained in:
committed by
Simon Robertshaw
parent
748a528fe0
commit
32c9ff3099
@@ -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);
|
||||
|
@@ -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);
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user