From: MirceaKitsune Date: Fri, 3 Sep 2010 16:22:35 +0000 (+0300) Subject: Better off, don't show any information in RPG scoreboard than the connected players... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bfb2735ebc4ba781128b85b53d77102172e3ee69;p=voretournament%2Fvoretournament.git Better off, don't show any information in RPG scoreboard than the connected players. It's not a gametype where it has any importance how much you kill or how many times you die. Also fix a warning. --- diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index e047e3bb..28e350f7 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -513,7 +513,7 @@ void Cmd_Sbar_SetFields(float argc) if(str == strtolower(scores_label[j])) goto found; // sorry, but otherwise fteqcc -O3 miscompiles this and warns about "unreachable code" :notfound - if(str == "frags" && !gametype == GAME_RPG) + if(str == "frags" && !(gametype == GAME_RPG)) { j = SP_FRAGS; } diff --git a/data/qcsrc/server/scores_rules.qc b/data/qcsrc/server/scores_rules.qc index 5e8b3ecc..6730b921 100644 --- a/data/qcsrc/server/scores_rules.qc +++ b/data/qcsrc/server/scores_rules.qc @@ -178,7 +178,6 @@ void ScoreRules_assault() // RPG stuff void ScoreRules_rpg() { - ScoreRules_basics(0, 0, 0, FALSE); ScoreInfo_SetLabel_PlayerScore(SP_SCORE, "", SFL_SORT_PRIO_PRIMARY | SFL_ALLOW_HIDE); ScoreRules_basics_end(); } \ No newline at end of file