diff options
author | Nao Pross <naopross@thearcway.org> | 2018-11-26 19:46:27 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-11-26 19:46:27 +0100 |
commit | 1b07a94de89a51df753e1cbdb6e0f77d5682ecd0 (patch) | |
tree | 5290ef2d242ede0d6bf1fddd0e42bc0fdbb735b9 | |
parent | Fix PerfView text color (diff) | |
download | Subconscious-java-1b07a94de89a51df753e1cbdb6e0f77d5682ecd0.tar.gz Subconscious-java-1b07a94de89a51df753e1cbdb6e0f77d5682ecd0.zip |
Deleted Game.start() content, add check for state change
-rw-r--r-- | src/subconscious/Game.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/subconscious/Game.java b/src/subconscious/Game.java index a7493b3..ed2bea6 100644 --- a/src/subconscious/Game.java +++ b/src/subconscious/Game.java @@ -52,8 +52,7 @@ public class Game { } public void start() { - // TODO: change - this.setState(State.BATTLE); + } public void update(long deltaNanoTime) { @@ -68,6 +67,9 @@ public class Game { /* methods to manage the state */ public void setState(State state) { + if (state == this.state) + return; + // stateLock.lock(); // this.stateChanged.signal(); // stateLock.unlock(); |