(svn r1715) Move [GS]etMapExtraBits to tile.[ch]
This commit is contained in:
11
landscape.c
11
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)
|
||||
|
||||
Reference in New Issue
Block a user