summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-03 10:31:02 +0000
committercelestar <celestar@openttd.org>2006-04-03 10:31:02 +0000
commitb4d9a37acc0d9c2c3a2e622152742ae3c8fc54cf (patch)
tree0e5bca38acdee247bec6dd29e4f9ac0dfb6e2ae2
parent7d3827cf3599dfa495816c8f98ad165c9f43b35f (diff)
downloadopenttd-b4d9a37acc0d9c2c3a2e622152742ae3c8fc54cf.tar.xz
(svn r4251) -Fix: Silence a warning in GetWaterTileType
-rw-r--r--water_map.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/water_map.h b/water_map.h
index d5dcdd5f1..9d63b0b5e 100644
--- a/water_map.h
+++ b/water_map.h
@@ -28,9 +28,9 @@ 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 (IS_INT_INSIDE(_m[t].m5, DEPOT_NORTH, DEPOT_END)) return WATER_DEPOT;
- assert(0);
+ assert(IS_INT_INSIDE(_m[t].m5, DEPOT_NORTH, DEPOT_END));
+ return WATER_DEPOT;
}
static inline bool IsWater(TileIndex t)