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:
iNilo 2016-12-12 14:57:29 +01:00 committed by Nicholas Hastings
parent ee501058fb
commit ec455394b4

View File

@ -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++)