From: MirceaKitsune Date: Sun, 26 Sep 2010 17:13:45 +0000 (+0300) Subject: Fix a dumb issue X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9706f12702c1e1765c60bb27d2a6b5cd2cd4931a;p=voretournament%2Fvoretournament.git Fix a dumb issue --- diff --git a/data/qcsrc/client/View.qc b/data/qcsrc/client/View.qc index 76f3f2c5..e4dd37f5 100644 --- a/data/qcsrc/client/View.qc +++ b/data/qcsrc/client/View.qc @@ -498,15 +498,13 @@ void CSQC_UpdateView(float w, float h) { if(getstati(STAT_WINNING)) // we are the winner { - if(!cvar("cl_artwork_won")) - return; - artwork_image = strcat("gfx/artwork_won_", ftos(floor(1 + (random() * cvar("cl_artwork_won"))))); + if(cvar("cl_artwork_won")) + artwork_image = strcat("gfx/artwork_won_", ftos(floor(1 + (random() * cvar("cl_artwork_won"))))); } else // we have lost { - if(!cvar("cl_artwork_lost")) - return; - artwork_image = strcat("gfx/artwork_lost_", ftos(floor(1 + (random() * cvar("cl_artwork_lost"))))); + if(cvar("cl_artwork_lost")) + artwork_image = strcat("gfx/artwork_lost_", ftos(floor(1 + (random() * cvar("cl_artwork_lost"))))); } artwork_image = strzone(artwork_image); } @@ -531,7 +529,8 @@ void CSQC_UpdateView(float w, float h) else artwork_fade = cvar("cl_artwork_alpha"); - drawpic(artwork_pos, artwork_image, artwork_size, '1 1 1', artwork_fade, DRAWFLAG_NORMAL); + if(artwork_image != "") + drawpic(artwork_pos, artwork_image, artwork_size, '1 1 1', artwork_fade, DRAWFLAG_NORMAL); } else {