summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-07-09 18:10:48 +0000
committerfrosch <frosch@openttd.org>2011-07-09 18:10:48 +0000
commit570da01d3a65c39083e6846b755043517f5897b5 (patch)
treead065e2946b5be21e6dbdb8830b2d3ab082aa5e5
parent8565703a4c86c776665df6dae5bb6bdab949ce58 (diff)
downloadopenttd-570da01d3a65c39083e6846b755043517f5897b5.tar.xz
(svn r22644) -Codechange: Use IsShipDepotTile() instead of single water- and depottests. (adf88)
-rw-r--r--src/saveload/afterload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index cae47b0ea..1ad7f5493 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -1514,7 +1514,7 @@ bool AfterLoadGame()
*/
if (IsSavegameVersionBefore(83)) {
for (TileIndex t = 0; t < map_size; t++) {
- if (IsTileType(t, MP_WATER) && IsShipDepot(t)) {
+ if (IsShipDepotTile(t)) {
_m[t].m4 = (TileHeight(t) == 0) ? OWNER_WATER : OWNER_NONE;
}
}