summaryrefslogtreecommitdiff
path: root/src/elements
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2011-03-22 17:25:29 (GMT)
committer Simon <simon@hardwired.org.uk>2011-03-22 17:25:29 (GMT)
commitc096b2b14a200a0cc0a08cfea839c9e7f4edf22e (patch)
tree6aaca470697115e62c8f5f4c612847499233dac7 /src/elements
parent7d56b3358969164deccb7cc837aa5dd3b59ea4f3 (diff)
parentffc3e0a5ee780c05abe5ff53432583c40ed62032 (diff)
downloadpowder-c096b2b14a200a0cc0a08cfea839c9e7f4edf22e.zip
powder-c096b2b14a200a0cc0a08cfea839c9e7f4edf22e.tar.gz
More cracker fixes
Diffstat (limited to 'src/elements')
-rw-r--r--src/elements/prto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elements/prto.c b/src/elements/prto.c
index 5bf6efe..fbbd5a1 100644
--- a/src/elements/prto.c
+++ b/src/elements/prto.c
@@ -6,8 +6,8 @@ int update_PRTO(UPDATE_FUNC_ARGS) {
parts[i].tmp = (int)((parts[i].temp-73.15f)/100+1);
if (parts[i].tmp>=CHANNELS) parts[i].tmp = CHANNELS-1;
else if (parts[i].tmp<0) parts[i].tmp = 0;
- for (rx=-1; rx<2; rx++)
- for (ry=-1; ry<2; ry++)
+ for (rx=1; rx>-2; rx--)
+ for (ry=1; ry>-2; ry--)
if (x+rx>=0 && y+ry>0 && x+rx<XRES && y+ry<YRES && (rx || ry))
{
r = pmap[y+ry][x+rx];