changeset 8875:d14fa09b7d2d draft

(svn r12642) -Fix: remove buggy buoys at tile 0 from old TTDP savegames
author smatz <smatz@openttd.org>
date Wed, 09 Apr 2008 21:33:36 +0000
parents a6a05ae5a7da
children c583862e8a89
files src/oldloader.cpp
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/oldloader.cpp
+++ b/src/oldloader.cpp
@@ -1692,6 +1692,12 @@
 
 	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;