summaryrefslogtreecommitdiff
path: root/src/simulation/elements/SPRK.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/simulation/elements/SPRK.cpp')
-rw-r--r--src/simulation/elements/SPRK.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/simulation/elements/SPRK.cpp b/src/simulation/elements/SPRK.cpp
index 4cccdbb..cb8eff6 100644
--- a/src/simulation/elements/SPRK.cpp
+++ b/src/simulation/elements/SPRK.cpp
@@ -187,6 +187,11 @@ int Element_SPRK::update(UPDATE_FUNC_ARGS)
else if (ct==PT_NSCN && parts[r>>8].tmp == 3) parts[r>>8].tmp = 1;
}
+ if (rt == PT_PPIP && parts[i].life == 3 && pavg!=PT_INSL)
+ {
+ if (ct == PT_NSCN || ct == PT_PSCN || ct == PT_INST)
+ Element_PPIP::flood_trigger(sim, x+rx, y+ry, ct);
+ }
// ct = spark from material, rt = spark to material. Make conduct_sprk = 0 if conduction not allowed