Skip to content

Commit

Permalink
Replace tier with track name in non-main start zones and indent text
Browse files Browse the repository at this point in the history
  • Loading branch information
strafe committed Mar 9, 2019
1 parent 9065e6d commit cb91330
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion addons/sourcemod/scripting/shavit-hud.sp
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,17 @@ int AddHUDToBuffer_CSGO(int client, huddata_t data, char[] buffer, int maxlen)
{
if(gB_Rankings && (gI_HUD2Settings[client] & HUD2_MAPTIER) == 0)
{
FormatEx(sZoneHUD, 32, "%T\n\n", "HudZoneTier", client, Shavit_GetMapTier(gS_Map));
if(data.iTrack == Track_Main)
{
FormatEx(sZoneHUD, 32, "%T", "HudZoneTier", client, Shavit_GetMapTier(gS_Map));
}

else
{
GetTrackName(client, data.iTrack, sZoneHUD, 32);
}

Format(sZoneHUD, 32, "\t\t%s\n\n", sZoneHUD);
AddHUDLine(buffer, maxlen, sZoneHUD, iLines);
iLines++;
}
Expand Down

0 comments on commit cb91330

Please sign in to comment.