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 | 7923f78ed03177a273742f37f460f6056df5f898 (patch) | |
tree | 934ff094e5774cd136fb200dd3a3039fdd7ae4e3 /src/newgrf.cpp | |
parent | bd9d8c08edc7a1722571d3ed24e758305a41fbaa (diff) | |
download | openttd-7923f78ed03177a273742f37f460f6056df5f898.tar.xz |
(svn r11161) -Fix: Allow to transform coordinates in negative ones when gfx of 0xFF allows it
Diffstat (limited to 'src/newgrf.cpp')
-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); |