mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-10 03:48:25 +00:00
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:
parent
b38795cfcf
commit
b41db94b87
@ -508,9 +508,6 @@ Action ShowChatRanksMenu(int client, int item)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
char[] sInfo = new char[8];
|
|
||||||
IntToString(i, sInfo, 8);
|
|
||||||
|
|
||||||
any[] aCache = new any[CRCACHE_SIZE];
|
any[] aCache = new any[CRCACHE_SIZE];
|
||||||
gA_ChatRanks.GetArray(i, aCache, view_as<int>(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");
|
ReplaceString(sDisplay, 192, "<n>", "\n");
|
||||||
StrCat(sDisplay, 192, "\n "); // to add spacing between each entry
|
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);
|
menu.AddItem(sInfo, sDisplay, (gI_ChatSelection[client] == i)? ITEMDRAW_DISABLED:ITEMDRAW_DEFAULT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user