]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sbar.c
Initial implementation of command flag system
[xonotic/darkplaces.git] / sbar.c
diff --git a/sbar.c b/sbar.c
index 3ea32ee4d2fbe9f9021e068c10e94d10499bda79..995390dc00c613af68fefb30ad692888e68618bd 100644 (file)
--- a/sbar.c
+++ b/sbar.c
@@ -360,8 +360,8 @@ void Sbar_Init (void)
 {
        if(gamemode == GAME_NORMAL) // Workaround so Quake doesn't trample on Xonotic.
        {
-               Cmd_AddCommand(&cmd_client, "+showscores", Sbar_ShowScores_f, "show scoreboard");
-               Cmd_AddCommand(&cmd_client, "-showscores", Sbar_DontShowScores_f, "hide scoreboard");
+               Cmd_AddCommand(CMD_CLIENT, "+showscores", Sbar_ShowScores_f, "show scoreboard");
+               Cmd_AddCommand(CMD_CLIENT, "-showscores", Sbar_DontShowScores_f, "hide scoreboard");
        }
        Cvar_RegisterVariable(&cl_showfps);
        Cvar_RegisterVariable(&cl_showsound);