summaryrefslogtreecommitdiff
path: root/src/elements
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2011-03-22 17:14:45 (GMT)
committer Simon <simon@hardwired.org.uk>2011-03-22 17:14:45 (GMT)
commit7d56b3358969164deccb7cc837aa5dd3b59ea4f3 (patch)
tree691ff0591ba547f99269850ac19815483f6b2cdc /src/elements
parentcf4572ec5fa53b0744af989f835de05023928c8d (diff)
parentca1cd0da065a1774dbeeba161139f580ab7f711a (diff)
downloadpowder-7d56b3358969164deccb7cc837aa5dd3b59ea4f3.zip
powder-7d56b3358969164deccb7cc837aa5dd3b59ea4f3.tar.gz
Fix some WIND bugs
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 fbbd5a1..5bf6efe 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];