Skip to content

Commit

Permalink
Don't call Cmd_RemoveCommand for nonexistent commands
Browse files Browse the repository at this point in the history
Some of them do exist, but are now implemented with new-style commands
so the legacy interface shouldn't be used.
  • Loading branch information
slipher committed Jan 18, 2025
1 parent 677f97c commit 24f42cc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/engine/client/cl_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2474,18 +2474,15 @@ void CL_Shutdown()

Cmd_RemoveCommand( "cmd" );
Cmd_RemoveCommand( "configstrings" );
Cmd_RemoveCommand( "userinfo" );
Cmd_RemoveCommand( "snd_restart" );
Cmd_RemoveCommand( "vid_restart" );
Cmd_RemoveCommand( "disconnect" );
Cmd_RemoveCommand( "connect" );
Cmd_RemoveCommand( "localservers" );
Cmd_RemoveCommand( "globalservers" );
Cmd_RemoveCommand( "rcon" );
Cmd_RemoveCommand( "ping" );
Cmd_RemoveCommand( "serverstatus" );
Cmd_RemoveCommand( "showip" );
Cmd_RemoveCommand( "model" );

CL_ClearKeyBinding();
CL_ClearInput();
Expand Down
2 changes: 0 additions & 2 deletions src/engine/renderer/tr_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1535,8 +1535,6 @@ ScreenshotCmd screenshotPNGRegistration("screenshotPNG", ssFormat_t::SSF_PNG, "p

ri.Cmd_RemoveCommand( "shaderexp" );
ri.Cmd_RemoveCommand( "gfxinfo" );
ri.Cmd_RemoveCommand( "shaderstate" );
ri.Cmd_RemoveCommand( "generatemtr" );
ri.Cmd_RemoveCommand( "buildcubemaps" );

ri.Cmd_RemoveCommand( "glsl_restart" );
Expand Down
1 change: 0 additions & 1 deletion src/engine/server/sv_ccmds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,5 @@ void SV_RemoveOperatorCommands()
Cmd_RemoveCommand( "heartbeat" );
Cmd_RemoveCommand( "map_restart" );
Cmd_RemoveCommand( "serverinfo" );
Cmd_RemoveCommand( "status" );
Cmd_RemoveCommand( "systeminfo" );
}

0 comments on commit 24f42cc

Please sign in to comment.