add brackets (#1019)

This commit is contained in:
Nairda 2021-02-27 19:49:15 +01:00 committed by GitHub
parent a6ff5dd94c
commit 5730148d0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -461,11 +461,17 @@ stock bool GuessBestMapName(ArrayList maps, const char[] input, char[] output, i
stock void GetTrackName(int client, int track, char[] output, int size) stock void GetTrackName(int client, int track, char[] output, int size)
{ {
if (track == Track_Main) if (track == Track_Main)
{
FormatEx(output, size, "%T", "Track_Main", client); FormatEx(output, size, "%T", "Track_Main", client);
}
else if (track >= Track_Bonus) else if (track >= Track_Bonus)
{
FormatEx(output, size, "%T", "Track_Bonus", client, track); FormatEx(output, size, "%T", "Track_Bonus", client, track);
}
else //if (track < Track_Main) else //if (track < Track_Main)
{
FormatEx(output, size, "%T", "Track_Unknown", client); FormatEx(output, size, "%T", "Track_Unknown", client);
}
} }
/** /**