summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-04-09 21:33:36 +0000
committersmatz <smatz@openttd.org>2008-04-09 21:33:36 +0000
commite075ade119bbab7f87eb0ca897e3a9ea0f55817b (patch)
tree6a698c29422ece9dccfceaf0e8628c5151789ea5
parent70f3413a36386ed3223142323cb9c863167d7da7 (diff)
downloadopenttd-e075ade119bbab7f87eb0ca897e3a9ea0f55817b.tar.xz
(svn r12642) -Fix: remove buggy buoys at tile 0 from old TTDP savegames
-rw-r--r--src/oldloader.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/oldloader.cpp b/src/oldloader.cpp
index be09da92f..8d7832da9 100644
--- a/src/oldloader.cpp
+++ b/src/oldloader.cpp
@@ -1692,6 +1692,12 @@ bool LoadOldSaveGame(const char *file)
fclose(ls.file);
+ /* Some old TTDP savegames could have buoys at tile 0
+ * (without assigned station struct)
+ * MakeWater() can be used as long as sea has the same
+ * format as old savegames (eg. everything is zeroed) */
+ MakeWater(0);
+
_pause_game = 2;
return true;