Skip to content

Commit

Permalink
add exit command as an alias to quit
Browse files Browse the repository at this point in the history
  • Loading branch information
Razish committed Feb 29, 2024
1 parent 1e8a799 commit fffe5e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/qcommon/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,7 @@ void Com_Init( char *commandLine ) {
// init commands and vars
//
Cmd_AddCommand ("quit", Com_Quit_f);
Cmd_AddCommand ("exit", Com_Quit_f);
Cmd_AddCommand ("writeconfig", Com_WriteConfig_f );

com_developer = Cvar_Get ("developer", "0", CVAR_TEMP );
Expand Down
1 change: 1 addition & 0 deletions codemp/qcommon/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,7 @@ void Com_Init( char *commandLine ) {
Cmd_AddCommand ("freeze", Com_Freeze_f);
}
Cmd_AddCommand ("quit", Com_Quit_f, "Quits the game" );
Cmd_AddCommand ("exit", Com_Quit_f, "Quits the game" );
#ifndef FINAL_BUILD
Cmd_AddCommand ("changeVectors", MSG_ReportChangeVectors_f );
#endif
Expand Down

0 comments on commit fffe5e3

Please sign in to comment.