Skip to content

Commit e848d4c

Browse files
committed
Replicate in Generals
1 parent a917dbd commit e848d4c

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

Generals/Code/GameEngine/Include/Common/GlobalData.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ class GlobalData : public SubsystemInterface
365365
Bool m_shellMapOn; ///< User can set the shell map not to load
366366
Bool m_playIntro; ///< Flag to say if we're to play the intro or not
367367
Bool m_playSizzle; ///< Flag to say whether we play the sizzle movie after the logo movie.
368-
Bool m_allowExitOutOfMovies; ///< flag to allow exit out of movies only after the Intro has played
369368

370369
Bool m_loadScreenRender; ///< flag to disallow rendering of almost everything during a loadscreen
371370

Generals/Code/GameEngine/Include/GameClient/GameClient.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ class GameClient : public SubsystemInterface,
150150
UnsignedInt getRenderedObjectCount() const { return m_renderedObjectCount; }
151151
void incrementRenderedObjectCount() { m_renderedObjectCount++; }
152152

153+
Bool skipCurrentIntroStage();
154+
153155
static Bool isMovieAbortRequested();
154156

155157
protected:

Generals/Code/GameEngine/Source/Common/GlobalData.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,6 @@ GlobalData::GlobalData()
10091009
m_shellMapOn =TRUE;
10101010
m_playIntro = TRUE;
10111011
m_playSizzle = TRUE;
1012-
m_allowExitOutOfMovies = FALSE;
10131012
m_loadScreenRender = FALSE;
10141013

10151014
m_keyboardDefaultScrollFactor = m_keyboardScrollFactor = 0.5f;

Generals/Code/GameEngine/Source/GameClient/GameClient.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,15 @@ void GameClient::step()
711711
TheDisplay->step();
712712
}
713713

714+
Bool GameClient::skipCurrentIntroStage()
715+
{
716+
if (m_intro != nullptr)
717+
{
718+
return m_intro->skipCurrentIntroStage();
719+
}
720+
return false;
721+
}
722+
714723
Bool GameClient::isMovieAbortRequested()
715724
{
716725
if (TheGameEngine)
@@ -723,7 +732,7 @@ Bool GameClient::isMovieAbortRequested()
723732
{
724733
TheKeyboard->UPDATE();
725734
KeyboardIO *io = TheKeyboard->findKey(KEY_ESC, KeyboardIO::STATUS_UNUSED);
726-
if (io && BitIsSet(io->state, KEY_STATE_DOWN))
735+
if (io && BitIsSet(io->state, KEY_STATE_UP))
727736
{
728737
io->setUsed();
729738
return TRUE;

0 commit comments

Comments
 (0)