disable chaning to polymover when changing from storyboard (close #102)

This commit is contained in:
yugecin
2016-12-12 19:48:03 +01:00
parent 5e8d218000
commit c88035a66c
2 changed files with 10 additions and 0 deletions

View File

@@ -77,6 +77,7 @@ import yugecin.opsudance.ui.SBOverlay;
* "Game" state.
*/
public class Game extends BasicGameState {
public static boolean isInGame; // TODO delete this when #79 is fixed
/** Game restart states. */
public enum Restart {
/** No restart. */
@@ -1351,6 +1352,7 @@ public class Game extends BasicGameState {
@Override
public void enter(GameContainer container, StateBasedGame game)
throws SlickException {
isInGame = true;
if (!skippedToCheckpoint) {
UI.enter();
}
@@ -1569,6 +1571,7 @@ public class Game extends BasicGameState {
@Override
public void leave(GameContainer container, StateBasedGame game)
throws SlickException {
isInGame = false;
// container.setMouseGrabbed(false);
skippedToCheckpoint = false;