summaryrefslogtreecommitdiff
path: root/src/smallmap_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-09-05 13:18:54 +0000
committerfrosch <frosch@openttd.org>2010-09-05 13:18:54 +0000
commite9cd81953ac0e9efa0149b134c75fa8ba45cbc9c (patch)
tree2797a65c9f2d38168ffaa6022ea40bcbe350e577 /src/smallmap_gui.cpp
parent435c8d33b0658c97648f18fbc38682ce09e321b2 (diff)
downloadopenttd-e9cd81953ac0e9efa0149b134c75fa8ba45cbc9c.tar.xz
(svn r20741) -Cleanup: Use IsTileOnWater() in more places.
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r--src/smallmap_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp
index 7e6faee27..454409bdd 100644
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -401,7 +401,7 @@ static inline uint32 GetSmallMapIndustriesPixels(TileIndex tile, TileType t)
return GetIndustrySpec(Industry::GetByTile(tile)->type)->map_colour * 0x01010101;
} else {
/* Otherwise, return the colour which will make it disappear */
- t = (GetWaterClass(tile) == WATER_CLASS_INVALID) ? MP_CLEAR : MP_WATER;
+ t = (IsTileOnWater(tile) ? MP_WATER : MP_CLEAR);
}
}