diff options
author | belugas <belugas@openttd.org> | 2007-09-26 01:27:51 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-09-26 01:27:51 +0000 |
commit | 63b91ac88ab76864be7d3319dba2c8a2e814059f (patch) | |
tree | 934ff094e5774cd136fb200dd3a3039fdd7ae4e3 /src | |
parent | ea2100e4e8dfafcaa1c37a90bb0a78fb1c2260c4 (diff) | |
download | openttd-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.cpp | 5 |
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); |