]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - view.c
Add missing video capture ifdefs
[xonotic/darkplaces.git] / view.c
diff --git a/view.c b/view.c
index 7bea5a969752fc7c8ff521bfa476ef290d7c13d5..afb711fefa824a9e3002547d83b3911e5cdae034 100644 (file)
--- a/view.c
+++ b/view.c
@@ -1200,12 +1200,9 @@ V_Init
 */
 void V_Init (void)
 {
-       Cmd_AddCommand(&cmd_client, "v_cshift", V_cshift_f, "sets tint color of view");
-       Cmd_AddCommand(&cmd_client, "bf", V_BonusFlash_f, "briefly flashes a bright color tint on view (used when items are picked up); optionally takes R G B [A [alphafade]] arguments to specify how the flash looks");
-       Cmd_AddCommand(&cmd_client, "centerview", V_StartPitchDrift_f, "gradually recenter view (stop looking up/down)");
-
-       Cmd_AddCommand(&cmd_clientfromserver, "v_cshift", V_cshift_f, "sets tint color of view");
-       Cmd_AddCommand(&cmd_clientfromserver, "bf", V_BonusFlash_f, "briefly flashes a bright color tint on view (used when items are picked up); optionally takes R G B [A [alphafade]] arguments to specify how the flash looks");
+       Cmd_AddCommand(CMD_CLIENT | CMD_CLIENT_FROM_SERVER, "v_cshift", V_cshift_f, "sets tint color of view");
+       Cmd_AddCommand(CMD_CLIENT | CMD_CLIENT_FROM_SERVER, "bf", V_BonusFlash_f, "briefly flashes a bright color tint on view (used when items are picked up); optionally takes R G B [A [alphafade]] arguments to specify how the flash looks");
+       Cmd_AddCommand(CMD_CLIENT, "centerview", V_StartPitchDrift_f, "gradually recenter view (stop looking up/down)");
 
        Cvar_RegisterVariable (&v_centermove);
        Cvar_RegisterVariable (&v_centerspeed);