Codechange: Remove PauseModeByte

This commit is contained in:
Charles Pigott
2019-04-22 13:14:46 +01:00
committed by PeterN
parent e18c8c30be
commit 327ff89808
4 changed files with 6 additions and 7 deletions

View File

@@ -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();