summaryrefslogtreecommitdiff
path: root/tile.c
diff options
context:
space:
mode:
Diffstat (limited to 'tile.c')
-rw-r--r--tile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tile.c b/tile.c
index db220d41e..f305b2209 100644
--- a/tile.c
+++ b/tile.c
@@ -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);
}