summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-09-26 01:27:51 +0000
committerbelugas <belugas@openttd.org>2007-09-26 01:27:51 +0000
commit63b91ac88ab76864be7d3319dba2c8a2e814059f (patch)
tree934ff094e5774cd136fb200dd3a3039fdd7ae4e3 /src
parentea2100e4e8dfafcaa1c37a90bb0a78fb1c2260c4 (diff)
downloadopenttd-63b91ac88ab76864be7d3319dba2c8a2e814059f.tar.xz
(svn r11161) -Fix: Allow to transform coordinates in negative ones when gfx of 0xFF allows it
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index d59d35c64..0ddf25c27 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -1938,7 +1938,10 @@ static bool IndustriesChangeInfo(uint indid, int numinfo, int prop, byte **bufp,
size = k + 1;
copy_from = itt;
}
- }
+ } else if (itt[k].gfx == 0xFF) {
+ itt[k].ti.x = (int8)GB(itt[k].ti.x, 0, 8);
+ itt[k].ti.y = (int8)GB(itt[k].ti.y, 0, 8);
+ }
}
tile_table[j] = CallocT<IndustryTileTable>(size);
memcpy(tile_table[j], copy_from, sizeof(*copy_from) * size);