From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Thu, 11 Feb 2021 13:17:31 +0000 (+0100) Subject: strafehud: fix start trigger speed indicator on maps with only two checkpoints (start... X-Git-Tag: xonotic-v0.8.6~136^2~72 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=19025d9405304ef686139be13cd7fb1fd246ce69;p=xonotic%2Fxonotic-data.pk3dir.git strafehud: fix start trigger speed indicator on maps with only two checkpoints (start/finish) --- diff --git a/qcsrc/client/hud/panel/strafehud.qc b/qcsrc/client/hud/panel/strafehud.qc index d50424b0c..55a919127 100644 --- a/qcsrc/client/hud/panel/strafehud.qc +++ b/qcsrc/client/hud/panel/strafehud.qc @@ -627,7 +627,7 @@ void HUD_StrafeHUD() if(autocvar_hud_panel_strafehud_startspeed_fade > 0) { float text_alpha = 0; - if(race_nextcheckpoint == 1) // check if the start trigger was hit since the checkpoint after the start trigger is always checkpoint 1 + if((race_nextcheckpoint == 1) || (race_checkpoint == 254 && race_nextcheckpoint == 255)) // check if the start trigger was hit (will also trigger if the finish trigger was hit if those have the same ID) { if(starttime != race_checkpointtime) {