From: terencehill Date: Sat, 6 Jun 2020 19:32:45 +0000 (+0200) Subject: Get rid of an useless constant X-Git-Tag: xonotic-v0.8.5~936 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ea7255c1b9304762f436a2d99142a7947da0a997;p=xonotic%2Fxonotic-data.pk3dir.git Get rid of an useless constant --- 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;