From ea7255c1b9304762f436a2d99142a7947da0a997 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 6 Jun 2020 21:32:45 +0200 Subject: [PATCH] Get rid of an useless constant --- qcsrc/client/hud/crosshair.qc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qcsrc/client/hud/crosshair.qc b/qcsrc/client/hud/crosshair.qc index 8fb7040af..c2dd9a1fb 100644 --- a/qcsrc/client/hud/crosshair.qc +++ b/qcsrc/client/hud/crosshair.qc @@ -17,7 +17,6 @@ #include #include -const float MAX_TIME_DIFF = 5; float pickup_crosshair_time, pickup_crosshair_size; float hitindication_crosshair_size; float use_vortex_chargepool; @@ -345,7 +344,7 @@ void HUD_Crosshair(entity this) if(pickup_crosshair_time < stat_pickup_time) { - if(time - stat_pickup_time < MAX_TIME_DIFF) // don't trigger the animation if it's too old + if(time - stat_pickup_time < 5) // don't trigger the animation if it's too old pickup_crosshair_size = 1; pickup_crosshair_time = stat_pickup_time; -- 2.39.2