Better artwork cvar names
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 26 Sep 2010 21:22:43 +0000 (00:22 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 26 Sep 2010 21:22:43 +0000 (00:22 +0300)
data/defaultVoretournament.cfg
data/qcsrc/client/View.qc

index 73fcadea019cbc3bba7f96b7de5ee4b012f435dc..70300cce96d117f86a66aad7353cc7cc80d0afd4 100644 (file)
@@ -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"\r
 seta crosshair_hittest_blur 1 "blur the crosshair if the shot is obstructed"\r
 seta crosshair_hittest_showimpact 0 "move the crosshair to the actual impact location if obstructed"\r
-seta cl_artwork_won 2 "number of artwork_won_ images available in the gfx folder, 0 disables winning artwork"\r
-seta cl_artwork_lost 2 "number of artwork_lost_ images available in the gfx folder, 0 disables loosing artwork"\r
+seta cl_artwork_win 2 "number of artwork_won_ images available in the gfx folder, 0 disables winning artwork"\r
+seta cl_artwork_lose 2 "number of artwork_lost_ images available in the gfx folder, 0 disables loosing artwork"\r
 seta cl_artwork_stretch 0 "stretch artwork to fit the screen, even if it brakes image proportions"\r
 seta cl_artwork_alpha 1 "artwork alpha"\r
 seta cl_artwork_fade 0.65 "artwork fade in speed"\r
index 1eda42f0fbca829e99b2ff0fde0bc8cf1985cd55..b497665a19f964f8faf6cbb2240667e16e7825af 100644 (file)
@@ -498,13 +498,13 @@ void CSQC_UpdateView(float w, float h)
                {\r
                        if(getstati(STAT_WINNING)) // we are the winner\r
                        {\r
-                               if(cvar("cl_artwork_won"))\r
-                                       artwork_image = strcat("gfx/artwork_won_", ftos(floor(1 + (random() * cvar("cl_artwork_won")))));\r
+                               if(cvar("cl_artwork_win"))\r
+                                       artwork_image = strcat("gfx/artwork_won_", ftos(floor(1 + (random() * cvar("cl_artwork_win")))));\r
                        }\r
                        else // we have lost\r
                        {\r
-                               if(cvar("cl_artwork_lost"))\r
-                                       artwork_image = strcat("gfx/artwork_lost_", ftos(floor(1 + (random() * cvar("cl_artwork_lost")))));\r
+                               if(cvar("cl_artwork_lose"))\r
+                                       artwork_image = strcat("gfx/artwork_lost_", ftos(floor(1 + (random() * cvar("cl_artwork_lose")))));\r
                        }\r
                        artwork_image = strzone(artwork_image);\r
                }\r