From cf5d20c2973f7e2cec0d4f288150585fb5b79d2e Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 26 Oct 2000 14:57:09 +0000 Subject: [PATCH] --- source/system/gstate.cpp | 7 +++++++ source/system/gstate.h | 1 + 2 files changed, 8 insertions(+) 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;}