]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Only colorize the swallow indicator if one of its color cvars is enabled
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 28 Feb 2011 23:05:34 +0000 (01:05 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 28 Feb 2011 23:05:34 +0000 (01:05 +0200)
data/qcsrc/client/View.qc

index 4d445a3500c329ea92fe67baeef9a78fb1f5fb19..674fb9c0bed449ca69c0f03f41018a68fcebfa92 100644 (file)
@@ -992,7 +992,7 @@ void CSQC_UpdateView(float w, float h)
                                string wcross_name;\r
                                float wcross_alpha, wcross_scale, wcross_blur, wcross_resolution;\r
 \r
-                               if(swallow_indicator)\r
+                               if(swallow_indicator && (cvar("crosshair_swallowindicator_color_red") || cvar("crosshair_swallowindicator_color_green") || cvar("crosshair_swallowindicator_color_blue")))\r
                                {\r
                                        wcross_color_x = cvar("crosshair_swallowindicator_color_red");\r
                                        wcross_color_y = cvar("crosshair_swallowindicator_color_green");\r