From 2725a32b8ed7965c7e9cb02c87d95518a4661af5 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 19 Dec 2015 02:44:20 -0500 Subject: [PATCH] Fix NTCT / PTCT / INWR triggering EMP blasts ... --- src/simulation/elements/SPRK.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/simulation/elements/SPRK.cpp b/src/simulation/elements/SPRK.cpp index c7f221378..79a2501bd 100644 --- a/src/simulation/elements/SPRK.cpp +++ b/src/simulation/elements/SPRK.cpp @@ -239,6 +239,7 @@ int Element_SPRK::update(UPDATE_FUNC_ARGS) if (receiver==PT_NTCT||receiver==PT_PTCT) continue; } + break; case PT_EMP: 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; parts[r>>8].life = 220; } - break; + continue; } if (pavg == PT_INSL) continue; //Insulation blocks everything past here