Navigation Menu

Skip to content

Commit

Permalink
Fix NTCT / PTCT / INWR triggering EMP blasts ...
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Dec 19, 2015
1 parent d92f356 commit 2725a32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/simulation/elements/SPRK.cpp
Expand Up @@ -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)
{
Expand All @@ -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
Expand Down

0 comments on commit 2725a32

Please sign in to comment.