summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-04-18 01:35:17 +0000
committerbelugas <belugas@openttd.org>2008-04-18 01:35:17 +0000
commited497b4fa79df7bcf05b31c4adb8f203f7867e68 (patch)
treeb79559a0cee3cde5f2953b182183719ed47f921a
parent18e64b28e25f387d1e269899cce8ffa704b1c76b (diff)
downloadopenttd-ed497b4fa79df7bcf05b31c4adb8f203f7867e68.tar.xz
(svn r12758) -Fix(r4712, r12745): Use a bool when it's about boolean evaluation. a TileIndex is hardly a bool, of course of course. Thanks for good old MSVC warnings.
-rw-r--r--src/water_map.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/water_map.h b/src/water_map.h
index b8c0de046..bf1935701 100644
--- a/src/water_map.h
+++ b/src/water_map.h
@@ -91,12 +91,12 @@ static inline TileIndex GetOtherShipDepotTile(TileIndex t)
return t + (HasBit(_m[t].m5, 0) ? -1 : 1) * (HasBit(_m[t].m5, 1) ? TileDiffXY(0, 1) : TileDiffXY(1, 0));
}
-static inline TileIndex IsShipDepot(TileIndex t)
+static inline bool IsShipDepot(TileIndex t)
{
return IsInsideMM(_m[t].m5, DEPOT_NORTH, DEPOT_END);
}
-static inline TileIndex IsShipDepotTile(TileIndex t)
+static inline bool IsShipDepotTile(TileIndex t)
{
return IsTileType(t, MP_WATER) && IsShipDepot(t);
}