]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Improve a sbar issue a little
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 6 Sep 2010 16:17:01 +0000 (19:17 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 6 Sep 2010 16:17:01 +0000 (19:17 +0300)
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