Add #ifdef MAPBASE preprocessor

This commit is contained in:
Avanate 2019-11-02 18:59:28 +02:00 committed by GitHub
parent 0f695ee664
commit 4f7fc0382a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,12 @@ VideoPanel::VideoPanel( unsigned int nXPos, unsigned int nYPos, unsigned int nHe
m_nPlaybackHeight( 0 ), m_nPlaybackHeight( 0 ),
m_bAllowAlternateMedia( allowAlternateMedia ) m_bAllowAlternateMedia( allowAlternateMedia )
{ {
#ifdef MAPBASE
vgui::VPANEL pParent = enginevgui->GetPanel( PANEL_ROOT ); vgui::VPANEL pParent = enginevgui->GetPanel( PANEL_ROOT );
#else
vgui::VPANEL pParent = enginevgui->GetPanel( PANEL_GAMEUIDLL );
#endif
SetParent( pParent ); SetParent( pParent );
SetVisible( false ); SetVisible( false );