diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-20 15:48:03 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-20 15:48:03 (GMT) |
| commit | b318c3721a43de9789efc6c286b41566649f5252 (patch) | |
| tree | 861c1f51b18e7ba7525b2a4903d9c7998af4a00a /src/simulation/elements/SPRK.cpp | |
| parent | 13888623a5a7f6fa9f532570c1b733f0fcdf2a64 (diff) | |
| download | powder-b318c3721a43de9789efc6c286b41566649f5252.zip powder-b318c3721a43de9789efc6c286b41566649f5252.tar.gz | |
TPT: Powered pipe, based on jacob1's commits
Diffstat (limited to 'src/simulation/elements/SPRK.cpp')
| -rw-r--r-- | src/simulation/elements/SPRK.cpp | 5 |
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 |
