From: Samual <samual@xonotic.org>
Date: Mon, 26 Dec 2011 04:14:14 +0000 (-0500)
Subject: Add another alias, plus make some of the warnings more stern for people adding new... 
X-Git-Tag: xonotic-v0.6.0~188^2~28^2~67
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7a090f8a8bfc50bc065e572a17c77a153678dd6b;p=xonotic%2Fxonotic-data.pk3dir.git

Add another alias, plus make some of the warnings more stern for people adding new commands :P I made this system perfect, don't screw it up people :P
---

diff --git a/commands.cfg b/commands.cfg
index 2200257772..22acccd88f 100644
--- a/commands.cfg
+++ b/commands.cfg
@@ -88,6 +88,7 @@ if_client alias blurtest "cl_cmd blurtest"
 if_client alias debugmodel "cl_cmd debugmodel ${* ?}"
 //if_client alias handlevote "cl_cmd handlevote ${* ?}"
 if_client alias hud "cl_cmd hud ${* ?}"
+if_client alias localprint "cl_cmd localprint ${* ?}"
 //if_client alias mv_download "cl_cmd mv_download ${* ?}"
 if_client alias sendcvar "cl_cmd sendcvar ${* ?}"
 //if_client alias settemp "cl_cmd settemp ${* ?}"
diff --git a/qcsrc/client/command/cl_cmd.qc b/qcsrc/client/command/cl_cmd.qc
index fc1e762b75..19c9dbcfb5 100644
--- a/qcsrc/client/command/cl_cmd.qc
+++ b/qcsrc/client/command/cl_cmd.qc
@@ -352,7 +352,8 @@ void LocalCommand_settemp(float request, float argc)
 	}
 }
 
-/* use this when creating a new command, making sure to place it in alphabetical order.
+/* use this when creating a new command, making sure to place it in alphabetical order... also,
+** ADD ALL NEW COMMANDS TO commands.cfg WITH PROPER ALIASES IN THE SAME FASHION!
 void LocalCommand_(float request)
 {
 	switch(request)
diff --git a/qcsrc/server/command/cmd.qc b/qcsrc/server/command/cmd.qc
index eae5deaa6e..d23ef5b108 100644
--- a/qcsrc/server/command/cmd.qc
+++ b/qcsrc/server/command/cmd.qc
@@ -516,7 +516,8 @@ void ClientCommand_voice(float request, float argc, string command) // legacy
 	}
 }
 
-/* use this when creating a new command, making sure to place it in alphabetical order.
+/* use this when creating a new command, making sure to place it in alphabetical order... also,
+** ADD ALL NEW COMMANDS TO commands.cfg WITH PROPER ALIASES IN THE SAME FASHION!
 void ClientCommand_(float request)
 {
 	switch(request)
diff --git a/qcsrc/server/command/common.qc b/qcsrc/server/command/common.qc
index 8c13dc58a5..58ad46be63 100644
--- a/qcsrc/server/command/common.qc
+++ b/qcsrc/server/command/common.qc
@@ -554,7 +554,8 @@ void CommonCommand_who(float request, entity caller, float argc)
 	}
 }
 
-/* use this when creating a new command, making sure to place it in alphabetical order.
+/* use this when creating a new command, making sure to place it in alphabetical order... also,
+** ADD ALL NEW COMMANDS TO commands.cfg WITH PROPER ALIASES IN THE SAME FASHION!
 void CommonCommand_(float request, entity caller)
 {
 	switch(request)
diff --git a/qcsrc/server/command/sv_cmd.qc b/qcsrc/server/command/sv_cmd.qc
index 68a8e9f10d..3dfaf8b275 100644
--- a/qcsrc/server/command/sv_cmd.qc
+++ b/qcsrc/server/command/sv_cmd.qc
@@ -1688,7 +1688,8 @@ void GameCommand_warp(float request, float argc)
 	}
 }
 
-/* use this when creating a new command, making sure to place it in alphabetical order.
+/* use this when creating a new command, making sure to place it in alphabetical order... also,
+** ADD ALL NEW COMMANDS TO commands.cfg WITH PROPER ALIASES IN THE SAME FASHION!
 void GameCommand_(float request)
 {
 	switch(request)
diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc
index f5c7f0ccb7..0f0d431d10 100644
--- a/qcsrc/server/command/vote.qc
+++ b/qcsrc/server/command/vote.qc
@@ -865,7 +865,8 @@ void VoteCommand_yes(float request, entity caller) // CLIENT ONLY
 	}
 }
 
-/* use this when creating a new command, making sure to place it in alphabetical order.
+/* use this when creating a new command, making sure to place it in alphabetical order... also,
+** ADD ALL NEW COMMANDS TO commands.cfg WITH PROPER ALIASES IN THE SAME FASHION!
 void VoteCommand_(float request)
 {
 	switch(request)