diff options
author | tron <tron@openttd.org> | 2005-01-29 13:33:48 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-29 13:33:48 +0000 |
commit | e86e9f96ca34114d53d4909ce2d6aa2d83dde2eb (patch) | |
tree | 84df3cedf71cb403fa6a6e80106442f0401bbd43 /landscape.c | |
parent | 3515b670d201aab581147e062fe47ea6be918980 (diff) | |
download | openttd-e86e9f96ca34114d53d4909ce2d6aa2d83dde2eb.tar.xz |
(svn r1715) Move [GS]etMapExtraBits to tile.[ch]
Diffstat (limited to 'landscape.c')
-rw-r--r-- | landscape.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/landscape.c b/landscape.c index 4e14682fd..993badea8 100644 --- a/landscape.c +++ b/landscape.c @@ -430,17 +430,6 @@ void CDECL ModifyTile(uint tile, uint flags, ...) MarkTileDirtyByTile(tile); } -void SetMapExtraBits(uint tile, byte bits) -{ - _map_extra_bits[tile >> 2] &= ~(3 << ((tile&3)*2)); - _map_extra_bits[tile >> 2] |= (bits&3) << ((tile&3)*2); -} - -uint GetMapExtraBits(uint tile) -{ - assert(tile < MapSize()); - return (_map_extra_bits[tile >> 2] >> (tile & 3) * 2) & 3; -} #define TILELOOP_BITS 4 #define TILELOOP_SIZE (1 << TILELOOP_BITS) |