mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-16 21:34:01 +02:00
Fix NTCT / PTCT / INWR triggering EMP blasts ...
This commit is contained in:
@@ -239,6 +239,7 @@ int Element_SPRK::update(UPDATE_FUNC_ARGS)
|
|||||||
if (receiver==PT_NTCT||receiver==PT_PTCT)
|
if (receiver==PT_NTCT||receiver==PT_PTCT)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case PT_EMP:
|
case PT_EMP:
|
||||||
if (!parts[r>>8].life && parts[i].life > 0 && parts[i].life < 4)
|
if (!parts[r>>8].life && parts[i].life > 0 && parts[i].life < 4)
|
||||||
{
|
{
|
||||||
@@ -248,7 +249,7 @@ int Element_SPRK::update(UPDATE_FUNC_ARGS)
|
|||||||
sim->emp_decor = 40;
|
sim->emp_decor = 40;
|
||||||
parts[r>>8].life = 220;
|
parts[r>>8].life = 220;
|
||||||
}
|
}
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pavg == PT_INSL) continue; //Insulation blocks everything past here
|
if (pavg == PT_INSL) continue; //Insulation blocks everything past here
|
||||||
|
Reference in New Issue
Block a user