mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-27 15:39:32 +01:00
(svn r11161) -Fix: Allow to transform coordinates in negative ones when gfx of 0xFF allows it
This commit is contained in:
parent
ea2100e4e8
commit
63b91ac88a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user