summaryrefslogtreecommitdiff
path: root/src/elements
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2012-02-04 01:48:20 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-02-05 14:45:30 (GMT)
commit72a4358eee003fef0a1e64ce223001f4bd1f1102 (patch)
tree0bf4113b59d0121f6b970c96abc1647e11dae893 /src/elements
parent68ab3ca3ca846ac5911cbfaa7c511b8f13108a54 (diff)
downloadpowder-72a4358eee003fef0a1e64ce223001f4bd1f1102.zip
powder-72a4358eee003fef0a1e64ce223001f4bd1f1102.tar.gz
Make ARAY fire once per spark
Diffstat (limited to 'src/elements')
-rw-r--r--src/elements/aray.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/aray.c b/src/elements/aray.c
index 4379635..85f59e3 100644
--- a/src/elements/aray.c
+++ b/src/elements/aray.c
@@ -11,7 +11,7 @@ int update_ARAY(UPDATE_FUNC_ARGS) {
r = pmap[y+ry][x+rx];
if (!r)
continue;
- if ((r&0xFF)==PT_SPRK && parts[r>>8].life>0 && parts[r>>8].life<4) {
+ if ((r&0xFF)==PT_SPRK && parts[r>>8].life==3) {
int destroy = (parts[r>>8].ctype==PT_PSCN)?1:0;
int nostop = (parts[r>>8].ctype==PT_INST)?1:0;
for (docontinue = 1, nxx = 0, nyy = 0, nxi = rx*-1, nyi = ry*-1; docontinue; nyy+=nyi, nxx+=nxi) {