mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 14:16:50 +00:00
vgui_controls: fix SetParent function
This commit is contained in:
parent
c4b93b30d7
commit
64f7bf9f96
@ -2205,7 +2205,7 @@ void CBaseGamesPage::ServerResponded( newgameserver_t &server )
|
||||
{
|
||||
Msg("Serverbrowser: hostname %s\n", server.GetName());
|
||||
|
||||
Assert( server.m_NetAdr.GetIP() != 0 );
|
||||
Assert( server.m_NetAdr.GetIPHostByteOrder() != 0 );
|
||||
|
||||
newgameserver_t *pServerItem = &server;
|
||||
|
||||
|
@ -1465,7 +1465,7 @@ void Panel::SetParent(VPANEL newParent)
|
||||
if( ipanel()->IsProportional(GetVParent()) )
|
||||
SetProportional(true);
|
||||
|
||||
if( IsPopup() )
|
||||
if( !IsPopup() )
|
||||
{
|
||||
// most of the time KBInput == parents kbinput
|
||||
if (ipanel()->IsKeyBoardInputEnabled(GetVParent()) != IsKeyBoardInputEnabled())
|
||||
|
Loading…
Reference in New Issue
Block a user