mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-07 23:10:04 +00:00
(svn r140) -Fix: Load Scenario fix
This commit is contained in:
parent
ea2d013ff0
commit
ebbfaced67
11
ttd.c
11
ttd.c
@ -750,8 +750,10 @@ void StartScenario()
|
||||
StartupEngines();
|
||||
StartupDisasters();
|
||||
|
||||
// Create a single player
|
||||
DoStartupNewPlayer(false);
|
||||
// When starting a scenario, is it really a load..
|
||||
// and in AfterLoad a player is started when it is
|
||||
// a scenario.. so we do not need it here.
|
||||
// DoStartupNewPlayer(false);
|
||||
|
||||
_local_player = 0;
|
||||
|
||||
@ -1134,6 +1136,11 @@ bool AfterLoadGame(uint version)
|
||||
CheckIsPlayerActive();
|
||||
}
|
||||
|
||||
// If Load Scenario / New (Scenario) Game is used,
|
||||
// a player does not exist yet. So create one here.
|
||||
if (!_players[0].is_active)
|
||||
DoStartupNewPlayer(false);
|
||||
|
||||
DoZoomInOut(ZOOM_NONE); // update button status
|
||||
MarkWholeScreenDirty();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user