forked from mirror/OpenTTD
(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.
This commit is contained in:
4
tile.c
4
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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user