From: MirceaKitsune Date: Mon, 6 Sep 2010 22:47:47 +0000 (+0300) Subject: Fix the sbar again. At this point, I'm releasing version 0.2 :) X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=cdeb22af0ab0e2a538f194c05e3250f344d24113 Fix the sbar again. At this point, I'm releasing version 0.2 :) --- diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index 91a3c3df..d9223079 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -508,15 +508,15 @@ void Cmd_Sbar_SetFields(float argc) sbar_field[sbar_num_fields] = SP_SEPARATOR; have_separator = 1; } else { + if(gametype == GAME_RPG) + return; + for(j = 0; j < MAX_SCORE; ++j) if(str == strtolower(scores_label[j])) goto found; // sorry, but otherwise fteqcc -O3 miscompiles this and warns about "unreachable code" :notfound if(str == "frags") - { - if not(gametype == GAME_RPG) - j = SP_FRAGS; - } + j = SP_FRAGS; else { if not(nocomplain)