Skip to content

Commit a1dba88

Browse files
authored
Mapbase v2.0; merge pull request #3 from Avanate/patch-2
Fix a video playback issue related to 'playvideo'
2 parents 27b026c + 4f7fc03 commit a1dba88

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sp/src/game/client/vgui_video.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ VideoPanel::VideoPanel( unsigned int nXPos, unsigned int nYPos, unsigned int nHe
2424
m_nPlaybackHeight( 0 ),
2525
m_bAllowAlternateMedia( allowAlternateMedia )
2626
{
27+
28+
#ifdef MAPBASE
29+
vgui::VPANEL pParent = enginevgui->GetPanel( PANEL_ROOT );
30+
#else
2731
vgui::VPANEL pParent = enginevgui->GetPanel( PANEL_GAMEUIDLL );
32+
#endif
2833
SetParent( pParent );
2934
SetVisible( false );
3035

@@ -420,4 +425,4 @@ CON_COMMAND( playvideo_exitcommand, "Plays a video and fires and exit command wh
420425
Warning( "Unable to play video: %s\n", strFullpath );
421426
engine->ClientCmd( pExitCommand );
422427
}
423-
}
428+
}

0 commit comments

Comments
 (0)