diff options
| author | jacksonmj <mj-pt@jacksonmj.co.uk> | 2012-02-03 23:35:44 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-02-05 14:45:29 (GMT) |
| commit | 6bdc05cc40a89b6454fdbaca7a2315a07f085bf9 (patch) | |
| tree | ddda52ecac10186b524f397983ebcb2c116fba02 /src/elements/aray.c | |
| parent | a4ad6ee428759346604437f416e27606b6ce09a1 (diff) | |
| download | powder-6bdc05cc40a89b6454fdbaca7a2315a07f085bf9.zip powder-6bdc05cc40a89b6454fdbaca7a2315a07f085bf9.tar.gz | |
Separate loop for updating life, and add SPRK life checks to most electronics
Diffstat (limited to 'src/elements/aray.c')
| -rw-r--r-- | src/elements/aray.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/aray.c b/src/elements/aray.c index 713fcc4..cce5e2d 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) { + if ((r&0xFF)==PT_SPRK && parts[r>>8].life<4) { 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) { |
