Emergency netsave on server restart connection failure saves title game #8887
Labels
bug
Something isn't working
priority: low
This issue should be fixed but has either a low impact or is en edge-case
Version of OpenTTD
Tested on f9d24ff
Expected result
When the server crashes right after loading a savegame and the client (that is reconnecting at the time) gets disconnected,
autosave/netsave.sav
contains a copy of the old network game before the server restarted.Actual result
When the server crashes right after loading a savegame and the client (that is reconnecting at the time) gets disconnected,
autosave/netsave.sav
contains a copy of the title screen game.By contrast, when the server crashes while loading a savegame, the client is disconnected and
autosave/netsave.sav
contains a copy of the old network game before the server restarted.Steps to reproduce
openttd -D ::1
).openttd
).connect ::1
).autosave/netsave.sav
and exit to the title screen (which replaces the game state with that of the title game).autosave/netsave.sav
.Alternative steps to reproduce
map_x
andmap_y
in openttd.cfg to at least 11.restart
ornewmap
.autosave/netsave.sav
and exit to the title screen (which replaces the game state with that of the title game).autosave/netsave.sav
.The text was updated successfully, but these errors were encountered: