mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-23 06:00:19 +02:00
Call G_BeginIntermission() instead of G_MissionFailed() when calling missionfailed
This commit is contained in:
1 file changed
+9
-1
@@ -3469,7 +3469,15 @@ void ScriptThread::CameraCommand(Event *ev)
|
||||
|
||||
void ScriptThread::MissionFailed(Event *ev)
|
||||
{
|
||||
G_MissionFailed();
|
||||
bool bNoFade;
|
||||
|
||||
if (level.intermissiontime) {
|
||||
return;
|
||||
}
|
||||
|
||||
bNoFade = ev->NumArgs() && ev->GetInteger(1);
|
||||
|
||||
G_BeginIntermission(level.current_map, TRANS_MISSION_FAILED, bNoFade);
|
||||
}
|
||||
|
||||
void ScriptThread::Archive(Archiver& arc) {}
|
||||
|
||||
Reference in new issue
Block a user