From ec455394b4f5133fd83f27ef9dc73ef35299655e Mon Sep 17 00:00:00 2001 From: iNilo Date: Mon, 12 Dec 2016 14:57:29 +0100 Subject: [PATCH] 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 --- plugins/basechat.sp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/basechat.sp b/plugins/basechat.sp index 42af84d9..223dc7b6 100644 --- a/plugins/basechat.sp +++ b/plugins/basechat.sp @@ -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++)