File tree Expand file tree Collapse file tree
Core/GameEngine/Source/GameClient
GeneralsMD/Code/GameEngine/Source/GameClient
Generals/Code/GameEngine/Source/GameClient Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -201,6 +201,8 @@ void Display::setHeight( UnsignedInt height )
201201
202202void Display::playMovie ( AsciiString movieName)
203203{
204+ if (TheGlobalData->m_headless )
205+ return ;
204206
205207 stopMovie ();
206208
Original file line number Diff line number Diff line change @@ -4135,6 +4135,8 @@ void InGameUI::createReplayControl()
41354135// ------------------------------------------------------------------------------------------------
41364136void InGameUI::playMovie ( const AsciiString& movieName )
41374137{
4138+ if (TheGlobalData->m_headless )
4139+ return ;
41384140
41394141 stopMovie ();
41404142
@@ -4190,6 +4192,8 @@ VideoBuffer* InGameUI::videoBuffer()
41904192// ------------------------------------------------------------------------------------------------
41914193void InGameUI::playCameoMovie ( const AsciiString& movieName )
41924194{
4195+ if (TheGlobalData->m_headless )
4196+ return ;
41934197
41944198 stopCameoMovie ();
41954199
Original file line number Diff line number Diff line change @@ -4249,6 +4249,8 @@ void InGameUI::createReplayControl()
42494249// ------------------------------------------------------------------------------------------------
42504250void InGameUI::playMovie ( const AsciiString& movieName )
42514251{
4252+ if (TheGlobalData->m_headless )
4253+ return ;
42524254
42534255 stopMovie ();
42544256
@@ -4304,6 +4306,8 @@ VideoBuffer* InGameUI::videoBuffer()
43044306// ------------------------------------------------------------------------------------------------
43054307void InGameUI::playCameoMovie ( const AsciiString& movieName )
43064308{
4309+ if (TheGlobalData->m_headless )
4310+ return ;
43074311
43084312 stopCameoMovie ();
43094313
You can’t perform that action at this time.
0 commit comments