Mercurial > hg > openttd
diff src/saveload/afterload.cpp @ 13178:ec4dc42ad747 draft
(svn r17685) -Fix: autounpausing kept trying to unpause a loaded game that was paused due to an error. Just reject such savegames in dedicated servers.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sat, 03 Oct 2009 14:48:12 +0000 |
parents | 090bac35e7e4 |
children | afdfdda87cd4 |
line wrap: on
line diff
--- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -408,6 +408,12 @@ if (CheckSavegameVersion(119)) { _pause_mode = (_pause_mode == 2) ? PM_PAUSED_NORMAL : PM_UNPAUSED; + } else if (_network_dedicated && (_pause_mode & PM_PAUSED_ERROR) != 0) { + DEBUG(net, 0, "The loading savegame was paused due to an error state."); + DEBUG(net, 0, " The savegame cannot be used for multiplayer!"); + /* Restore the signals */ + ResetSignalHandlers(); + return false; } /* in very old versions, size of train stations was stored differently */