]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/client/sbar.qc
Improve a sbar issue a little
[voretournament/voretournament.git] / data / qcsrc / client / sbar.qc
index 6d75af022bc56318995ce874cef0a1038c013162..91a3c3dfb5bfabf4d0c8195308379e304dc7c4b9 100644 (file)
@@ -512,9 +512,10 @@ void Cmd_Sbar_SetFields(float argc)
                                if(str == strtolower(scores_label[j]))\r
                                        goto found; // sorry, but otherwise fteqcc -O3 miscompiles this and warns about "unreachable code"\r
 :notfound\r
-                       if(str == "frags" && !(gametype == GAME_RPG))\r
+                       if(str == "frags")\r
                        {\r
-                               j = SP_FRAGS;\r
+                               if not(gametype == GAME_RPG)\r
+                                       j = SP_FRAGS;\r
                        }\r
                        else\r
                        {\r