summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-13 12:15:52 +0000
committerrubidium <rubidium@openttd.org>2008-05-13 12:15:52 +0000
commit962273e24202e090c1b173f3e8cd2f65b2a2d585 (patch)
tree8bb1c4b3dad1f45641ca6be5c6cf625a92facca9 /src/openttd.cpp
parent5d7851e8d63766b15881bafd4940bf89f37b2bdc (diff)
downloadopenttd-962273e24202e090c1b173f3e8cd2f65b2a2d585.tar.xz
(svn r13066) -Fix [FS#2005]: loading of TTDP savegames with rivers in them.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index ecba066fa..8779f87d4 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -2425,9 +2425,7 @@ bool AfterLoadGame()
/* Move river flag and update canals to use water class */
if (IsTileType(t, MP_WATER)) {
- if (_m[t].m5 == 2) {
- MakeRiver(t, Random());
- } else {
+ if (GetWaterClass(t) != WATER_CLASS_RIVER) {
if (IsWater(t)) {
Owner o = GetTileOwner(t);
if (o == OWNER_WATER) {