what the fuck sourcemod

this commit fixes an issue where you sometimes don't see the current chat title selected in the chat ranks menu

why does it happen? i don't know, i have no idea at all..
This commit is contained in:
shavit 2018-03-24 03:02:15 +03:00
parent b38795cfcf
commit b41db94b87

View File

@ -508,9 +508,6 @@ Action ShowChatRanksMenu(int client, int item)
continue;
}
char[] sInfo = new char[8];
IntToString(i, sInfo, 8);
any[] aCache = new any[CRCACHE_SIZE];
gA_ChatRanks.GetArray(i, aCache, view_as<int>(CRCACHE_SIZE));
@ -518,6 +515,9 @@ Action ShowChatRanksMenu(int client, int item)
ReplaceString(sDisplay, 192, "<n>", "\n");
StrCat(sDisplay, 192, "\n "); // to add spacing between each entry
char[] sInfo = new char[8];
IntToString(i, sInfo, 8);
menu.AddItem(sInfo, sDisplay, (gI_ChatSelection[client] == i)? ITEMDRAW_DISABLED:ITEMDRAW_DEFAULT);
}