(svn r4252) -Codechange: Make more use of map accessors. water_cmd is now map access free

This commit is contained in:
celestar
2006-04-03 10:50:54 +00:00
parent b4d9a37acc
commit 89c145b14e
2 changed files with 51 additions and 43 deletions

View File

@@ -68,6 +68,12 @@ static inline DiagDirection GetLockDirection(TileIndex t)
return (DiagDirection)GB(_m[t].m5, 0, 2);
}
static inline byte GetSection(TileIndex t)
{
assert(GetWaterTileType(t) == WATER_LOCK || GetWaterTileType(t) == WATER_DEPOT);
return GB(_m[t].m5, 0, 4);
}
static inline void MakeWater(TileIndex t)
{