From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Thu, 26 Sep 2024 16:42:15 +0000 (+0200) Subject: strafehud: move GeomLerp declaration so that it also applies to the strafehud sub... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e742c4b7d88699eb8343d6d8635dcad26074c121;p=xonotic%2Fxonotic-data.pk3dir.git strafehud: move GeomLerp declaration so that it also applies to the strafehud sub parts --- diff --git a/qcsrc/client/hud/panel/strafehud.qc b/qcsrc/client/hud/panel/strafehud.qc index 7dd27dce2..1b385f39b 100644 --- a/qcsrc/client/hud/panel/strafehud.qc +++ b/qcsrc/client/hud/panel/strafehud.qc @@ -21,8 +21,6 @@ void HUD_StrafeHUD_Export(int fh) // allow saving cvars that aesthetically change the panel into hud skin files } -float GeomLerp(float a, float _lerp, float b); // declare GeomLerp here since there's no header file for it - void HUD_StrafeHUD() { static float hud_lasttime = 0; diff --git a/qcsrc/client/hud/panel/strafehud.qh b/qcsrc/client/hud/panel/strafehud.qh index ac503a81b..041d69c12 100644 --- a/qcsrc/client/hud/panel/strafehud.qh +++ b/qcsrc/client/hud/panel/strafehud.qh @@ -137,3 +137,5 @@ const int STRAFEHUD_PROJECTION_PERSPECTIVE = 1; const int STRAFEHUD_PROJECTION_PANORAMIC = 2; const float ACOS_SQRT2_3_DEG = 35.2643896827546543153; /* acos(sqrt(2/3)) * RAD2DEG */ + +float GeomLerp(float a, float _lerp, float b); // declare GeomLerp here since there's no header file for it