From e45245942a8fe06b0e9fe658cca2e3a595c5b7cb Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Mon, 27 Sep 2010 00:22:43 +0300 Subject: [PATCH] Better artwork cvar names --- data/defaultVoretournament.cfg | 4 ++-- data/qcsrc/client/View.qc | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/data/defaultVoretournament.cfg b/data/defaultVoretournament.cfg index 73fcadea..70300cce 100644 --- a/data/defaultVoretournament.cfg +++ b/data/defaultVoretournament.cfg @@ -113,8 +113,8 @@ seta crosshair_effect_scalefade 1 "use scaling and fading for crosshair effects" seta crosshair_hittest 1.25 "do a crosshair hit evaluation; also, the crosshair is scaled by the given number when aiming at an enemy, and blurred when aiming at a team mate" seta crosshair_hittest_blur 1 "blur the crosshair if the shot is obstructed" seta crosshair_hittest_showimpact 0 "move the crosshair to the actual impact location if obstructed" -seta cl_artwork_won 2 "number of artwork_won_ images available in the gfx folder, 0 disables winning artwork" -seta cl_artwork_lost 2 "number of artwork_lost_ images available in the gfx folder, 0 disables loosing artwork" +seta cl_artwork_win 2 "number of artwork_won_ images available in the gfx folder, 0 disables winning artwork" +seta cl_artwork_lose 2 "number of artwork_lost_ images available in the gfx folder, 0 disables loosing artwork" seta cl_artwork_stretch 0 "stretch artwork to fit the screen, even if it brakes image proportions" seta cl_artwork_alpha 1 "artwork alpha" seta cl_artwork_fade 0.65 "artwork fade in speed" diff --git a/data/qcsrc/client/View.qc b/data/qcsrc/client/View.qc index 1eda42f0..b497665a 100644 --- a/data/qcsrc/client/View.qc +++ b/data/qcsrc/client/View.qc @@ -498,13 +498,13 @@ void CSQC_UpdateView(float w, float h) { if(getstati(STAT_WINNING)) // we are the winner { - if(cvar("cl_artwork_won")) - artwork_image = strcat("gfx/artwork_won_", ftos(floor(1 + (random() * cvar("cl_artwork_won"))))); + if(cvar("cl_artwork_win")) + artwork_image = strcat("gfx/artwork_won_", ftos(floor(1 + (random() * cvar("cl_artwork_win"))))); } else // we have lost { - if(cvar("cl_artwork_lost")) - artwork_image = strcat("gfx/artwork_lost_", ftos(floor(1 + (random() * cvar("cl_artwork_lost"))))); + if(cvar("cl_artwork_lose")) + artwork_image = strcat("gfx/artwork_lost_", ftos(floor(1 + (random() * cvar("cl_artwork_lose"))))); } artwork_image = strzone(artwork_image); } -- 2.39.2