From 4f7fc0382af0de8d155ce9398aeecc71725cb94b Mon Sep 17 00:00:00 2001 From: Avanate <33595129+Avanate@users.noreply.github.com> Date: Sat, 2 Nov 2019 18:59:28 +0200 Subject: [PATCH] Add #ifdef MAPBASE preprocessor --- sp/src/game/client/vgui_video.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sp/src/game/client/vgui_video.cpp b/sp/src/game/client/vgui_video.cpp index 55fad39e..6df78893 100644 --- a/sp/src/game/client/vgui_video.cpp +++ b/sp/src/game/client/vgui_video.cpp @@ -24,7 +24,12 @@ VideoPanel::VideoPanel( unsigned int nXPos, unsigned int nYPos, unsigned int nHe m_nPlaybackHeight( 0 ), m_bAllowAlternateMedia( allowAlternateMedia ) { + +#ifdef MAPBASE vgui::VPANEL pParent = enginevgui->GetPanel( PANEL_ROOT ); +#else + vgui::VPANEL pParent = enginevgui->GetPanel( PANEL_GAMEUIDLL ); +#endif SetParent( pParent ); SetVisible( false );