From 0f695ee6647029ef4bfa7a535745212c76913911 Mon Sep 17 00:00:00 2001 From: Avanate <33595129+Avanate@users.noreply.github.com> Date: Mon, 7 Oct 2019 17:33:49 +0300 Subject: [PATCH] Fix a video playback issue related to 'playvideo' There is currently a bug that prohibits 'playvideo' from successfully playing media in-game, as the player must firstly go to the main menu for it to play, this issue makes sure that the command can work without having the player go to the menu. --- sp/src/game/client/vgui_video.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sp/src/game/client/vgui_video.cpp b/sp/src/game/client/vgui_video.cpp index 3badea3f..55fad39e 100644 --- a/sp/src/game/client/vgui_video.cpp +++ b/sp/src/game/client/vgui_video.cpp @@ -24,7 +24,7 @@ VideoPanel::VideoPanel( unsigned int nXPos, unsigned int nYPos, unsigned int nHe m_nPlaybackHeight( 0 ), m_bAllowAlternateMedia( allowAlternateMedia ) { - vgui::VPANEL pParent = enginevgui->GetPanel( PANEL_GAMEUIDLL ); + vgui::VPANEL pParent = enginevgui->GetPanel( PANEL_ROOT ); SetParent( pParent ); SetVisible( false ); @@ -420,4 +420,4 @@ CON_COMMAND( playvideo_exitcommand, "Plays a video and fires and exit command wh Warning( "Unable to play video: %s\n", strFullpath ); engine->ClientCmd( pExitCommand ); } -} \ No newline at end of file +}