Fix size cvar for the indicator
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 28 Feb 2011 21:01:38 +0000 (23:01 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 28 Feb 2011 21:01:38 +0000 (23:01 +0200)
data/qcsrc/client/View.qc

index 8ff9fbd41d37ba347e516cf703ebdecbcd1a9cfd..ecdadde987682bfe000f00861a3e695761b78d78 100644 (file)
@@ -974,6 +974,8 @@ void CSQC_UpdateView(float w, float h)
                                {\r
                                        wcross_scale = 1;\r
                                }\r
+                               if(swallow_indicator)\r
+                                       wcross_scale *= cvar("crosshair_swallowindicator_size");\r
 \r
                                if(cvar("crosshair_pickup"))\r
                                {\r
@@ -1081,9 +1083,6 @@ void CSQC_UpdateView(float w, float h)
                                CROSSHAIR_DRAW(wcross_resolution, wcross_name, wcross_alpha * f);\r
                                wcross_name_alpha_goal_prev = f;\r
 \r
-                               if(swallow_indicator)\r
-                                       wcross_size *= cvar("crosshair_swallowindicator_size");\r
-\r
                                // ring around crosshair representing bullets left in weapon clip\r
                                weapon_clipload = getstati(STAT_WEAPON_CLIPLOAD);\r
                                a = cvar("crosshair_ring_alpha");\r