From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Fri, 7 Oct 2022 04:39:31 +0000 (+0200) Subject: strafehud: set hud_lasttime even if the strafehud isn't enabled X-Git-Tag: xonotic-v0.8.6~136^2~19 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=21f4a0424e7f9673ec976269b2d69d7e5368e905;p=xonotic%2Fxonotic-data.pk3dir.git strafehud: set hud_lasttime even if the strafehud isn't enabled --- diff --git a/qcsrc/client/hud/panel/strafehud.qc b/qcsrc/client/hud/panel/strafehud.qc index 859c84d18..2df95ffd3 100644 --- a/qcsrc/client/hud/panel/strafehud.qc +++ b/qcsrc/client/hud/panel/strafehud.qc @@ -33,7 +33,7 @@ void HUD_StrafeHUD() { if(!autocvar_hud_panel_strafehud || (spectatee_status == -1 && (autocvar_hud_panel_strafehud == 1 || autocvar_hud_panel_strafehud == 3)) || - (autocvar_hud_panel_strafehud == 3 && !MUTATOR_CALLHOOK(HUD_StrafeHUD_showoptional))) return; + (autocvar_hud_panel_strafehud == 3 && !MUTATOR_CALLHOOK(HUD_StrafeHUD_showoptional))) { hud_lasttime = time; return; } } HUD_Panel_LoadCvars();