(svn r20039) -Fix [FS#3907]: instead of loading the intro game when loading a savegame fails on the dedicated server, generate a new game.
Generating a new game is the least bad solution: * loading the intro game: desyncs due to GM_MENU on the server and GM_NORMAL on the clients, NewGRFs not being loaded on the server but being loaded on the client; * creating an empty map: OpenTTD will go crazy due to missing towns. Also clients can't properly join because of the missing towns; * loading the last saved game: doesn't always exist and loading it might fail causing an infinite loop; * stopping being a server: breaks the dedicated server horribly; if you loaded the game via rcon you can't connect with it anymore as you can't join the server; * generating a new game: should always succeed, although people might think a scenario loaded fine because there are no companies and such.pull/155/head
parent
188f5f8e4d
commit
d8716dfa8a
Loading…
Reference in New Issue