mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-27 07:15:31 +03:00
Mapbase v2.0; merge pull request #3 from Avanate/patch-2
Fix a video playback issue related to 'playvideo'
This commit is contained in:
commit
a1dba884a3
@ -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 );
|
||||||
|
#else
|
||||||
vgui::VPANEL pParent = enginevgui->GetPanel( PANEL_GAMEUIDLL );
|
vgui::VPANEL pParent = enginevgui->GetPanel( PANEL_GAMEUIDLL );
|
||||||
|
#endif
|
||||||
SetParent( pParent );
|
SetParent( pParent );
|
||||||
SetVisible( false );
|
SetVisible( false );
|
||||||
|
|
||||||
@ -420,4 +425,4 @@ CON_COMMAND( playvideo_exitcommand, "Plays a video and fires and exit command wh
|
|||||||
Warning( "Unable to play video: %s\n", strFullpath );
|
Warning( "Unable to play video: %s\n", strFullpath );
|
||||||
engine->ClientCmd( pExitCommand );
|
engine->ClientCmd( pExitCommand );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user