Skip to content

Commit 94ca297

Browse files
committed
Quit when the end of the mission is reached
1 parent 20f84c1 commit 94ca297

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

code/cmdline/cmdline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1771,7 +1771,7 @@ bool SetCmdlineParams()
17711771

17721772
if (benchmark_mode_arg.found())
17731773
{
1774-
Cmdline_benchmark_mode = 1;
1774+
Cmdline_benchmark_mode = true;
17751775
}
17761776

17771777
//Deprecated flags - CommanderDJ

code/freespace2/freespace.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5764,6 +5764,10 @@ void game_leave_state( int old_state, int new_state )
57645764
snd_aav_init();
57655765

57665766
freespace_stop_mission();
5767+
5768+
if (Cmdline_benchmark_mode) {
5769+
gameseq_post_event( GS_EVENT_QUIT_GAME );
5770+
}
57675771
}
57685772
break;
57695773

0 commit comments

Comments
 (0)