(svn r140) -Fix: Load Scenario fix

This commit is contained in:
truelight 2004-08-25 10:17:39 +00:00
parent ea2d013ff0
commit ebbfaced67
1 changed files with 19 additions and 12 deletions

11
ttd.c
View File

@ -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();