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   * 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.DrawItem("", ITEMDRAW_SPACER);
 | 
				
			||||||
	mSayPanel.DrawText(message);
 | 
						mSayPanel.DrawText(message);
 | 
				
			||||||
	mSayPanel.DrawItem("", ITEMDRAW_SPACER);
 | 
						mSayPanel.DrawItem("", ITEMDRAW_SPACER);
 | 
				
			||||||
 | 
						mSayPanel.CurrentKey = GetMaxPageItems(GetPanelStyle(mSayPanel));
 | 
				
			||||||
	mSayPanel.CurrentKey = 10;
 | 
					 | 
				
			||||||
	mSayPanel.DrawItem("Exit", ITEMDRAW_CONTROL);
 | 
						mSayPanel.DrawItem("Exit", ITEMDRAW_CONTROL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	for(int i = 1; i <= MaxClients; i++)
 | 
						for(int i = 1; i <= MaxClients; i++)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user