]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
strafehud: set hud_lasttime even if the strafehud isn't enabled
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Fri, 7 Oct 2022 04:39:31 +0000 (06:39 +0200)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Fri, 7 Oct 2022 04:39:31 +0000 (06:39 +0200)
qcsrc/client/hud/panel/strafehud.qc

index 859c84d18330c83b7f48866d3bdd9749d09a7d17..2df95ffd312b8cbc3ba127db470dad7eb9c9472a 100644 (file)
@@ -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();