changeset 2049 | ad0d49c916d4 |
parent 1981 | de031d2aed47 |
child 2186 | 461a2aff3486 |
--- a/tile.c Wed Jul 13 09:51:01 2005 +0000 +++ b/tile.c Wed Jul 13 18:04:01 2005 +0000 @@ -4,13 +4,13 @@ void SetMapExtraBits(TileIndex tile, byte bits) { assert(tile < MapSize()); - SB(_map_extra_bits[tile >> 2], (tile & 3) * 2, 2, bits & 3); + SB(_m[tile].extra, 0, 2, bits & 3); } uint GetMapExtraBits(TileIndex tile) { assert(tile < MapSize()); - return GB(_map_extra_bits[tile >> 2], (tile & 3) * 2, 2); + return GB(_m[tile].extra, 0, 2); }