vgui_controls: fix SetParent function

This commit is contained in:
nillerusr 2023-01-29 21:48:36 +03:00
parent c4b93b30d7
commit 64f7bf9f96
2 changed files with 2 additions and 2 deletions

View File

@ -2205,7 +2205,7 @@ void CBaseGamesPage::ServerResponded( newgameserver_t &server )
{ {
Msg("Serverbrowser: hostname %s\n", server.GetName()); Msg("Serverbrowser: hostname %s\n", server.GetName());
Assert( server.m_NetAdr.GetIP() != 0 ); Assert( server.m_NetAdr.GetIPHostByteOrder() != 0 );
newgameserver_t *pServerItem = &server; newgameserver_t *pServerItem = &server;

View File

@ -1465,7 +1465,7 @@ void Panel::SetParent(VPANEL newParent)
if( ipanel()->IsProportional(GetVParent()) ) if( ipanel()->IsProportional(GetVParent()) )
SetProportional(true); SetProportional(true);
if( IsPopup() ) if( !IsPopup() )
{ {
// most of the time KBInput == parents kbinput // most of the time KBInput == parents kbinput
if (ipanel()->IsKeyBoardInputEnabled(GetVParent()) != IsKeyBoardInputEnabled()) if (ipanel()->IsKeyBoardInputEnabled(GetVParent()) != IsKeyBoardInputEnabled())