mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-14 16:15:14 +01:00
(svn r14339) -Fix (r13731): crash when loading the intro game failed
This commit is contained in:
parent
5f4ff33ce3
commit
dce7bec2d3
@ -363,10 +363,12 @@ static void LoadIntroGame()
|
|||||||
if (SaveOrLoad("opntitle.dat", SL_LOAD, DATA_DIR) != SL_OK) {
|
if (SaveOrLoad("opntitle.dat", SL_LOAD, DATA_DIR) != SL_OK) {
|
||||||
GenerateWorld(GW_EMPTY, 64, 64); // if failed loading, make empty world.
|
GenerateWorld(GW_EMPTY, 64, 64); // if failed loading, make empty world.
|
||||||
WaitTillGeneratedWorld();
|
WaitTillGeneratedWorld();
|
||||||
|
SetLocalPlayer(PLAYER_SPECTATOR);
|
||||||
|
} else {
|
||||||
|
SetLocalPlayer(PLAYER_FIRST);
|
||||||
}
|
}
|
||||||
|
|
||||||
_pause_game = 0;
|
_pause_game = 0;
|
||||||
SetLocalPlayer(PLAYER_FIRST);
|
|
||||||
_cursor.fix_at = false;
|
_cursor.fix_at = false;
|
||||||
MarkWholeScreenDirty();
|
MarkWholeScreenDirty();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user