Change sm_msay behavior to use GetMaxPageItems instead of hardcoded values (#568)
* Fix for CS:GO not showing the sm_msay exit button Fix for CS:GO not showing the sm_msay exit button ![mSayPanel.CurrentKey = 9](http://i.imgur.com/t8079No.png) ![mSayPanel.CurrentKey = 10](http://i.imgur.com/qxgVoUM.png) * Someone ate the semicolon Made a new one * Uses gamedata to determine the exit button Uses gamedata to determine the exit button * GetMenuStyle -> GetPanelStyle
This commit is contained in:
parent
ee501058fb
commit
ec455394b4
@ -407,8 +407,7 @@ void SendPanelToAll(int from, char[] message)
|
||||
mSayPanel.DrawItem("", ITEMDRAW_SPACER);
|
||||
mSayPanel.DrawText(message);
|
||||
mSayPanel.DrawItem("", ITEMDRAW_SPACER);
|
||||
|
||||
mSayPanel.CurrentKey = 10;
|
||||
mSayPanel.CurrentKey = GetMaxPageItems(GetPanelStyle(mSayPanel));
|
||||
mSayPanel.DrawItem("Exit", ITEMDRAW_CONTROL);
|
||||
|
||||
for(int i = 1; i <= MaxClients; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user