diff --git a/addons/sourcemod/scripting/shavit-hud.sp b/addons/sourcemod/scripting/shavit-hud.sp index af7bae13..5ba33bea 100644 --- a/addons/sourcemod/scripting/shavit-hud.sp +++ b/addons/sourcemod/scripting/shavit-hud.sp @@ -679,7 +679,6 @@ void UpdateHUD(int client) { int track = Shavit_GetClientTrack(target); char[] sTrack = new char[32]; - GetTrackName(client, track, sTrack, 32); if(!IsFakeClient(target)) { @@ -731,6 +730,7 @@ void UpdateHUD(int client) if(track != Track_Main) { + GetTrackName(client, track, sTrack, 32); Format(sHintText, 512, "%s[%s] ", sHintText, sTrack); } @@ -834,12 +834,13 @@ void UpdateHUD(int client) if(track != Track_Main) { + GetTrackName(client, track, sTrack, 32); Format(sTrack, 32, "(%s) ", sTrack); } if(gEV_Type == Engine_CSGO) { - FormatEx(sHintText, 512, ""); + FormatEx(sHintText, 512, ""); Format(sHintText, 512, "%s\t%s %T", sHintText, gS_StyleStrings[style][sHTMLColor], gS_StyleStrings[style][sStyleName], "ReplayText", client); Format(sHintText, 512, "%s\n\t%T: %s / %s", sHintText, "HudTimeText", client, sReplayTime, sReplayLength); Format(sHintText, 512, "%s\n\t%T: %d", sHintText, "HudSpeedText", client, iSpeed);