Jeck - Added option to disable screen transitions.

This commit is contained in:
wagic.jeck
2010-02-10 02:38:41 +00:00
parent f962297d6b
commit 7fd2956399
5 changed files with 11 additions and 3 deletions

View File

@@ -362,6 +362,12 @@ void GameApp::Resume(){
void GameApp::DoTransition(int trans, int tostate, float dur, bool animonly){
TransitionBase * tb = NULL;
GameState * toState = NULL;
if(options[Options::TRANSITIONS].number != 0){
if(tostate != GAME_STATE_NONE)
SetNextState(tostate);
return;
}
if(tostate > GAME_STATE_NONE && tostate < GAME_STATE_MAX)
toState = mGameStates[tostate];