Removing uneeded Game Screen check

Adding SplitFlat that takes in offsets
This commit is contained in:
Nathan Adams
2012-05-05 23:18:31 -05:00
parent eceddb52af
commit e86a1f887c
2 changed files with 51 additions and 4 deletions

View File

@@ -188,13 +188,12 @@ namespace GameStateManagement
PlayerIndex i;
if (input.IsNewButtonPress(Buttons.Back, PlayerIndex.One, out i) || input.IsNewKeyPress(Keys.Escape, PlayerIndex.One, out i))
{
if (this.ScreenState == GameStateManagement.ScreenState.Active && this.TransitionPosition == 0 && this.TransitionAlpha == 1)
{ //Give the screens a chance to transition
//if (this.ScreenState == GameStateManagement.ScreenState.Active && this.TransitionPosition == 0 && this.TransitionAlpha == 1)
//{ //Give the screens a chance to transition
CleanUp();
ExitScreen();
}
//}
}
base.HandleInput(gameTime, input);
}