diff --git a/source/system/gstate.cpp b/source/system/gstate.cpp index 795867e62..03a9c8f2d 100644 --- a/source/system/gstate.cpp +++ b/source/system/gstate.cpp @@ -87,12 +87,19 @@ void GameState::setNextScene( CScene *_nextScene ) } + /*****************************************************************************/ CScene * GameState::getCurrentScene() { return s_currentScene; } +/*****************************************************************************/ +CScene * GameState::getPendingScene() +{ + return s_pendingScene; +} + /*****************************************************************************/ static int s_timeSpeed = ONE; void GameState::updateTimer() diff --git a/source/system/gstate.h b/source/system/gstate.h index b51af8b5a..f8d988c08 100644 --- a/source/system/gstate.h +++ b/source/system/gstate.h @@ -53,6 +53,7 @@ public: static void setTimeSpeed( int speed ); static CScene * getCurrentScene(); + static CScene * getPendingScene(); #if defined(__TERRITORY_USA__) || defined(__TERRITORY_JAP__) static int getOneSecondInFrames() {return 60;}