- manifest['foo'] is now case insensitive:manifest['food'] = manifest['Food'] = manifest['FOOD']
- corrected a last-minute snafu with mission screen callbacks & status screen. Should stop doing this when sleepy! git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2761 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
116d83f955
commit
9ee6b481c4
@ -3084,13 +3084,21 @@ static BOOL toggling_music;
|
|||||||
[UNIVERSE removeDemoShips];
|
[UNIVERSE removeDemoShips];
|
||||||
[gui clearBackground];
|
[gui clearBackground];
|
||||||
[[OOMusicController sharedController] stopMissionMusic];
|
[[OOMusicController sharedController] stopMissionMusic];
|
||||||
[self setGuiToStatusScreen]; // some js actions require this to be set first.
|
|
||||||
if (_missionWithCallback)
|
if (_missionWithCallback)
|
||||||
{
|
{
|
||||||
[self doMissionCallback];
|
[self doMissionCallback];
|
||||||
}
|
}
|
||||||
[self setGuiToStatusScreen]; // we need to provide feedback when something changes inside the callback.
|
// fix for launching from inside the callback.
|
||||||
[self endMissionScreenAndNoteOpportunity];
|
if ([self status] == STATUS_DOCKED)
|
||||||
|
{
|
||||||
|
[self setGuiToStatusScreen]; // enable feedback
|
||||||
|
[self endMissionScreenAndNoteOpportunity];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
[self doWorldEventUntilMissionScreen:@"missionScreenEnded"];
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
spacePressed = YES;
|
spacePressed = YES;
|
||||||
}
|
}
|
||||||
@ -3142,13 +3150,20 @@ static BOOL toggling_music;
|
|||||||
[gui clearBackground];
|
[gui clearBackground];
|
||||||
[[OOMusicController sharedController] stopMissionMusic];
|
[[OOMusicController sharedController] stopMissionMusic];
|
||||||
[self playDismissedMissionScreen];
|
[self playDismissedMissionScreen];
|
||||||
[self setGuiToStatusScreen]; // enable some js commands
|
|
||||||
if (_missionWithCallback)
|
if (_missionWithCallback)
|
||||||
{
|
{
|
||||||
[self doMissionCallback];
|
[self doMissionCallback];
|
||||||
}
|
}
|
||||||
[self setGuiToStatusScreen]; // enable feedback
|
// fix for launching from inside the callback
|
||||||
[self endMissionScreenAndNoteOpportunity];
|
if ([self status] == STATUS_DOCKED)
|
||||||
|
{
|
||||||
|
[self setGuiToStatusScreen]; // enable feedback
|
||||||
|
[self endMissionScreenAndNoteOpportunity];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
[self doWorldEventUntilMissionScreen:@"missionScreenEnded"];
|
||||||
|
}
|
||||||
[self checkScript];
|
[self checkScript];
|
||||||
}
|
}
|
||||||
selectPressed = YES;
|
selectPressed = YES;
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user