diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2019-04-22 13:14:46 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-04-29 17:40:22 +0100 |
commit | 327ff898080d94ab129f6e7ae3c268dcf10d6a08 (patch) | |
tree | 8ac8d4261c7fcb060252b2d0953c99014362faf3 /src/openttd.h | |
parent | e18c8c30be2bb20271c4c5f65441513b591f416d (diff) | |
download | openttd-327ff898080d94ab129f6e7ae3c268dcf10d6a08.tar.xz |
Codechange: Remove PauseModeByte
Diffstat (limited to 'src/openttd.h')
-rw-r--r-- | src/openttd.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/openttd.h b/src/openttd.h index 5e360d6fc..539b7e14f 100644 --- a/src/openttd.h +++ b/src/openttd.h @@ -54,7 +54,7 @@ extern SwitchMode _switch_mode; extern bool _exit_game; /** Modes of pausing we've got */ -enum PauseMode { +enum PauseMode : byte { PM_UNPAUSED = 0, ///< A normal unpaused game PM_PAUSED_NORMAL = 1 << 0, ///< A game normally paused PM_PAUSED_SAVELOAD = 1 << 1, ///< A game paused for saving/loading @@ -67,10 +67,9 @@ enum PauseMode { PMB_PAUSED_NETWORK = PM_PAUSED_ACTIVE_CLIENTS | PM_PAUSED_JOIN, }; DECLARE_ENUM_AS_BIT_SET(PauseMode) -typedef SimpleTinyEnumT<PauseMode, byte> PauseModeByte; /** The current pause mode */ -extern PauseModeByte _pause_mode; +extern PauseMode _pause_mode; void AskExitGame(); void AskExitToGameMenu(); |