(svn r12642) -Fix: remove buggy buoys at tile 0 from old TTDP savegames
authorsmatz
Wed, 09 Apr 2008 21:33:36 +0000
changeset 10111 703ab46c030e
parent 10110 d0cd5452bbe9
child 10112 4cff0d575f0b
(svn r12642) -Fix: remove buggy buoys at tile 0 from old TTDP savegames
src/oldloader.cpp
--- a/src/oldloader.cpp	Wed Apr 09 19:52:33 2008 +0000
+++ b/src/oldloader.cpp	Wed Apr 09 21:33:36 2008 +0000
@@ -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;