Moved playing of docking music to before execution of playerStartedAutopilot handler, as per issue #180 discussion.

This commit is contained in:
AnotherCommander 2016-02-26 17:30:18 +01:00
parent 8a670aa204
commit 5cf14a12b7

View File

@ -3320,9 +3320,9 @@ NSComparisonResult marketSorterByMassUnit(id a, id b, void *market);
[self resetAutopilotAI];
[shipAI setState:@"BEGIN_DOCKING"]; // reboot the AI
[self playAutopilotOn];
[[OOMusicController sharedController] playDockingMusic];
[self doScriptEvent:OOJSID("playerStartedAutoPilot") withArgument:stationForDocking];
[self setDockingClearanceStatus:DOCKING_CLEARANCE_STATUS_GRANTED];
[[OOMusicController sharedController] playDockingMusic];
if (afterburner_engaged)
{