(svn r140) -Fix: Load Scenario fix
This commit is contained in:
11
ttd.c
11
ttd.c
@@ -750,8 +750,10 @@ void StartScenario()
|
|||||||
StartupEngines();
|
StartupEngines();
|
||||||
StartupDisasters();
|
StartupDisasters();
|
||||||
|
|
||||||
// Create a single player
|
// When starting a scenario, is it really a load..
|
||||||
DoStartupNewPlayer(false);
|
// and in AfterLoad a player is started when it is
|
||||||
|
// a scenario.. so we do not need it here.
|
||||||
|
// DoStartupNewPlayer(false);
|
||||||
|
|
||||||
_local_player = 0;
|
_local_player = 0;
|
||||||
|
|
||||||
@@ -1134,6 +1136,11 @@ bool AfterLoadGame(uint version)
|
|||||||
CheckIsPlayerActive();
|
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
|
DoZoomInOut(ZOOM_NONE); // update button status
|
||||||
MarkWholeScreenDirty();
|
MarkWholeScreenDirty();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user