summaryrefslogtreecommitdiff
path: root/src/elements/pcln.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-04-17 16:24:51 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-04-17 16:24:51 (GMT)
commitb88a2f680e638d7fbf396482b567ca5b6a7314f6 (patch)
tree480f60ba51e634ff2abc96ca76417d48958c7127 /src/elements/pcln.cpp
parent8ea1e41d8737cbd2cc5f7ca6779cc0a8031dac85 (diff)
downloadpowder-b88a2f680e638d7fbf396482b567ca5b6a7314f6.zip
powder-b88a2f680e638d7fbf396482b567ca5b6a7314f6.tar.gz
TPT: More SPRK life checks for electronic elements 68ab3ca3ca
Diffstat (limited to 'src/elements/pcln.cpp')
-rw-r--r--src/elements/pcln.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/pcln.cpp b/src/elements/pcln.cpp
index 3b4cde0..86d67f6 100644
--- a/src/elements/pcln.cpp
+++ b/src/elements/pcln.cpp
@@ -11,7 +11,7 @@ int update_PCLN(UPDATE_FUNC_ARGS) {
r = pmap[y+ry][x+rx];
if (!r)
continue;
- if ((r&0xFF)==PT_SPRK && parts[r>>8].life<4)
+ if ((r&0xFF)==PT_SPRK && parts[r>>8].life>0 && parts[r>>8].life<4)
{
if (parts[r>>8].ctype==PT_PSCN)
parts[i].life = 10;