diff options
author | tron <tron@openttd.org> | 2005-07-13 18:04:01 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-07-13 18:04:01 +0000 |
commit | 8c1d74162f1544e351ae6308cbcca06f324c2c36 (patch) | |
tree | b36523450a7bccf37ca126b6f857d1529d44c67b /tile.c | |
parent | 1a1dde7c8d0cf18e49b5af7fef1368216120eed1 (diff) | |
download | openttd-8c1d74162f1544e351ae6308cbcca06f324c2c36.tar.xz |
(svn r2558) Change the internal map format from 7 arrays to one array of structs, this doesn't change the saved format for now. It's a stepping stone for further changes.
Diffstat (limited to 'tile.c')
-rw-r--r-- | tile.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |