1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-10-05 20:37:25 +03:00

Cleanup GameState (#9610)

* Cleanup GameState

* Braint
This commit is contained in:
buthed010203 2024-03-02 10:49:11 -05:00 committed by GitHub
parent 2a95bc3092
commit 277291ce09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,11 +86,12 @@ public class GameState{
}
public boolean isPaused(){
return is(State.paused);
return state == State.paused;
}
/** @return whether there is an unpaused game in progress. */
public boolean isPlaying(){
return (state == State.playing) || (state == State.paused && !isPaused());
return state == State.playing;
}
/** @return whether the current state is *not* the menu. */