]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove useless scoreboard_showaccuracy global
authorterencehill <piuntn@gmail.com>
Wed, 20 Mar 2019 19:16:50 +0000 (20:16 +0100)
committerterencehill <piuntn@gmail.com>
Wed, 20 Mar 2019 19:16:50 +0000 (20:16 +0100)
qcsrc/client/commands/cl_cmd.qc
qcsrc/client/defs.qh

index c4b1ec041126310346a099b3f6b87546097df94a..56709642026df191ce3c5c3eea00cb300d838ce5 100644 (file)
@@ -565,11 +565,12 @@ void GameCommand(string command)
 
 // These functions are here specifically to add special + - commands to the game, and are not really normal commands.
 // Please add client commands to the function above this, as this is only for special reasons.
+// NOTE: showaccuracy is kept as legacy command
 #define CONSOLE_COMMANDS_NORMAL() \
        CONSOLE_COMMAND("+showscores", { scoreboard_showscores = true; }) \
        CONSOLE_COMMAND("-showscores", { scoreboard_showscores = false; }) \
-       CONSOLE_COMMAND("+showaccuracy", { scoreboard_showaccuracy = true; }) \
-       CONSOLE_COMMAND("-showaccuracy", { scoreboard_showaccuracy = false; }) \
+       CONSOLE_COMMAND("+showaccuracy", { }) \
+       CONSOLE_COMMAND("-showaccuracy", { }) \
        /* nothing */
 
 #define CONSOLE_COMMANDS_MOVEMENT() \
index 5204e8f36dbcd09f54912bab92b453094914e01c..1fa2fd42be0cff70f91729c08153f3858467972b 100644 (file)
@@ -3,7 +3,6 @@
 // Additional OPTIONAL Fields and Globals
 //float                intermission;
 float          scoreboard_showscores;
-float          scoreboard_showaccuracy;
 .string                message;
 .float         renderflags;
 // float               coop;