]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - view.c
Auto-register serverfromclient commands to forward to the server on the client
[xonotic/darkplaces.git] / view.c
diff --git a/view.c b/view.c
index 844f63fefe8e6066c13defc6a65a621296dd7fa5..afb711fefa824a9e3002547d83b3911e5cdae034 100644 (file)
--- a/view.c
+++ b/view.c
@@ -1200,9 +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_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);