diff options
author | tron <tron@openttd.org> | 2006-04-23 13:48:16 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-04-23 13:48:16 +0000 |
commit | 0347fb2ab67e942826523424c35ede66d27339fe (patch) | |
tree | 3f0769bd955cefba7ab80063e64546c1874e0a62 /water_map.h | |
parent | b5ce99c52d1ce36f56431652f7fcc67eb9d5bf6d (diff) | |
download | openttd-0347fb2ab67e942826523424c35ede66d27339fe.tar.xz |
(svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums
Diffstat (limited to 'water_map.h')
-rw-r--r-- | water_map.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/water_map.h b/water_map.h index b0c04cc59..b9a8ea76d 100644 --- a/water_map.h +++ b/water_map.h @@ -45,7 +45,7 @@ static inline bool IsCoast(TileIndex t) static inline bool IsClearWaterTile(TileIndex t) { - return IsTileType(t, MP_WATER) && IsWater(t) && GetTileSlope(t, NULL) == 0; + return IsTileType(t, MP_WATER) && IsWater(t) && GetTileSlope(t, NULL) == SLOPE_FLAT; } static inline TileIndex GetOtherShipDepotTile(TileIndex t) |