summaryrefslogtreecommitdiff
path: root/src/water_map.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-01 13:27:51 +0000
committerrubidium <rubidium@openttd.org>2007-03-01 13:27:51 +0000
commitef9b0bdd88fc39dea58b81950d3a43f6e839f2dd (patch)
tree20dcbc284526c11d696f541209a5df7dd921bfc7 /src/water_map.h
parent7fd21fb29b484e307901dddacd000626eb0bb474 (diff)
downloadopenttd-ef9b0bdd88fc39dea58b81950d3a43f6e839f2dd.tar.xz
(svn r8953) -Codechange: make the names of enums of WaterTileType consistent with respect to RailTileType and RoadTileType.
Diffstat (limited to 'src/water_map.h')
-rw-r--r--src/water_map.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/water_map.h b/src/water_map.h
index db3308cbf..26bd92f2b 100644
--- a/src/water_map.h
+++ b/src/water_map.h
@@ -4,10 +4,10 @@
#define WATER_MAP_H
typedef enum WaterTileType {
- WATER_CLEAR,
- WATER_COAST,
- WATER_LOCK,
- WATER_DEPOT,
+ WATER_TILE_CLEAR,
+ WATER_TILE_COAST,
+ WATER_TILE_LOCK,
+ WATER_TILE_DEPOT,
} WaterTileType;
typedef enum DepotPart {
@@ -25,22 +25,22 @@ typedef enum LockPart {
static inline WaterTileType GetWaterTileType(TileIndex t)
{
- if (_m[t].m5 == 0) return WATER_CLEAR;
- if (_m[t].m5 == 1) return WATER_COAST;
- if (IS_INT_INSIDE(_m[t].m5, LOCK_MIDDLE, LOCK_END)) return WATER_LOCK;
+ if (_m[t].m5 == 0) return WATER_TILE_CLEAR;
+ if (_m[t].m5 == 1) return WATER_TILE_COAST;
+ if (IS_INT_INSIDE(_m[t].m5, LOCK_MIDDLE, LOCK_END)) return WATER_TILE_LOCK;
assert(IS_INT_INSIDE(_m[t].m5, DEPOT_NORTH, DEPOT_END));
- return WATER_DEPOT;
+ return WATER_TILE_DEPOT;
}
static inline bool IsWater(TileIndex t)
{
- return GetWaterTileType(t) == WATER_CLEAR;
+ return GetWaterTileType(t) == WATER_TILE_CLEAR;
}
static inline bool IsCoast(TileIndex t)
{
- return GetWaterTileType(t) == WATER_COAST;
+ return GetWaterTileType(t) == WATER_TILE_COAST;
}
static inline bool IsClearWaterTile(TileIndex t)
@@ -75,7 +75,7 @@ static inline DiagDirection GetLockDirection(TileIndex t)
static inline byte GetSection(TileIndex t)
{
- assert(GetWaterTileType(t) == WATER_LOCK || GetWaterTileType(t) == WATER_DEPOT);
+ assert(GetWaterTileType(t) == WATER_TILE_LOCK || GetWaterTileType(t) == WATER_TILE_DEPOT);
return GB(_m[t].m5, 0, 4);
}