From cdeb22af0ab0e2a538f194c05e3250f344d24113 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Tue, 7 Sep 2010 01:47:47 +0300 Subject: [PATCH] Fix the sbar again. At this point, I'm releasing version 0.2 :) --- data/qcsrc/client/sbar.qc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) -- 2.39.2