mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-12 02:01:29 -10:00
properly close out mission when end-mission sexp is used (Mantis #2144)
This commit is contained in:
1 parent
5fb12eebf4
commit
f985b10eb7
1 file changed
+11
-5
@@ -6211,11 +6211,17 @@ void game_leave_state( int old_state, int new_state )
|
||||
|
||||
case GS_STATE_DEATH_DIED:
|
||||
Game_mode &= ~GM_DEAD_DIED;
|
||||
|
||||
// early end while respawning or blowing up in a multiplayer game
|
||||
if((Game_mode & GM_MULTIPLAYER) && ((new_state == GS_STATE_DEBRIEF) || (new_state == GS_STATE_MULTI_DOGFIGHT_DEBRIEF)) ){
|
||||
game_stop_time();
|
||||
freespace_stop_mission();
|
||||
|
||||
if ( !(Game_mode & GM_MULTIPLAYER) ) {
|
||||
if ( end_mission && (new_state == GS_STATE_DEBRIEF) ) {
|
||||
freespace_stop_mission();
|
||||
}
|
||||
} else {
|
||||
// early end while respawning or blowing up in a multiplayer game
|
||||
if ( (new_state == GS_STATE_DEBRIEF) || (new_state == GS_STATE_MULTI_DOGFIGHT_DEBRIEF) ) {
|
||||
game_stop_time();
|
||||
freespace_stop_mission();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in new issue
Block a user