1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-02-02 09:04:29 +01:00

(svn r19741) [1.0] -Backport from trunk:

- Fix: Crash when using restart via rcon (r19722)                                                                   
- Fix: Leaking a file descriptor [FS#3785] (r19695)                                                 
- Fix: Crash when the music/graphics metadata files were unreadable [FS#3774] (r19674)
This commit is contained in:
rubidium
2010-04-30 21:01:21 +00:00
parent b62a1ad1d5
commit 233ff7cacd
14 changed files with 52 additions and 33 deletions

View File

@@ -989,7 +989,7 @@ DEF_CONSOLE_CMD(ConRestart)
/* Don't copy the _newgame pointers to the real pointers, so call SwitchToMode directly */
_settings_game.game_creation.map_x = MapLogX();
_settings_game.game_creation.map_y = FindFirstBit(MapSizeY());
SwitchToMode(SM_RESTARTGAME);
_switch_mode = SM_RESTARTGAME;
return true;
}