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 4d445a3..674fb9c 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
                                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
                                {\r
                                        wcross_color_x = cvar("crosshair_swallowindicator_color_red");\r
                                        wcross_color_y = cvar("crosshair_swallowindicator_color_green");\r