Permalink
Browse files

Change sm_msay behavior to use GetMaxPageItems instead of hardcoded v…

…alues (#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
  • Loading branch information...
1 parent ee50105 commit ec455394b4f5133fd83f27ef9dc73ef35299655e @iNilo iNilo committed with psychonic Dec 12, 2016
Showing with 1 addition and 2 deletions.
  1. +1 −2 plugins/basechat.sp
View
@@ -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++)

2 comments on commit ec45539

@iNilo
Contributor
iNilo commented on ec45539 Dec 12, 2016

Might as well use the methodmap now ? https://git.io/v1KNi

@psychonic
Member

That would be fine.

Please sign in to comment.