]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Remove the Xonotic +showscores kludge
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 24 Jan 2023 00:11:55 +0000 (10:11 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Tue, 24 Jan 2023 00:11:55 +0000 (10:11 +1000)
Fixes https://github.com/DarkPlacesEngine/darkplaces/issues/64

See also: https://gitlab.com/xonotic/xonotic-data.pk3dir/-/merge_requests/1128
and 3912e78a6047f2c45b3ff4967df7a68ad4e1b994

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
sbar.c

diff --git a/sbar.c b/sbar.c
index be13963350a42847b088fb9afd0c7aa9427a8ea9..687c9499bd23dc0909f05237e48ffa5e18b641dd 100644 (file)
--- a/sbar.c
+++ b/sbar.c
@@ -359,11 +359,8 @@ static void sbar_newmap(void)
 
 void Sbar_Init (void)
 {
-       if(gamemode == GAME_NORMAL) // Workaround so Quake doesn't trample on Xonotic.
-       {
-               Cmd_AddCommand(CF_CLIENT, "+showscores", Sbar_ShowScores_f, "show scoreboard");
-               Cmd_AddCommand(CF_CLIENT, "-showscores", Sbar_DontShowScores_f, "hide scoreboard");
-       }
+       Cmd_AddCommand(CF_CLIENT, "+showscores", Sbar_ShowScores_f, "show scoreboard");
+       Cmd_AddCommand(CF_CLIENT, "-showscores", Sbar_DontShowScores_f, "hide scoreboard");
        Cvar_RegisterVariable(&cl_showfps);
        Cvar_RegisterVariable(&cl_showsound);
        Cvar_RegisterVariable(&cl_showblur);