mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-28 06:34:33 +01:00
(svn r12867) [0.6] -Backport from trunk r12706, r12642, r12622, r12572, r12542:
- Fix: Do not crash very hard on unrecognised savegames, just go back to the intro menu instead (r12706) - Fix: Remove buggy buoys at tile 0 from old TTDP savegames (r12642) - Fix: Infinite loop in case your compiler decides that enums are unsigned by default (r12622) - Fix: min() has 32bit arguments, clamping of 64bit values did not work (r12572) - Fix: Do not install scenarios into the current user's homedir when running 'make install', that is silly. Simply always install scenarios system wide instead (r12542)
This commit is contained in:
@@ -1694,6 +1694,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;
|
||||
|
||||
Reference in New Issue
Block a user