summaryrefslogtreecommitdiff
path: root/src/misc_cmd.cpp
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2019-04-22 13:14:46 +0100
committerPeterN <peter@fuzzle.org>2019-04-29 17:40:22 +0100
commit327ff898080d94ab129f6e7ae3c268dcf10d6a08 (patch)
tree8ac8d4261c7fcb060252b2d0953c99014362faf3 /src/misc_cmd.cpp
parente18c8c30be2bb20271c4c5f65441513b591f416d (diff)
downloadopenttd-327ff898080d94ab129f6e7ae3c268dcf10d6a08.tar.xz
Codechange: Remove PauseModeByte
Diffstat (limited to 'src/misc_cmd.cpp')
-rw-r--r--src/misc_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc_cmd.cpp b/src/misc_cmd.cpp
index f0ccfbd74..4271f5758 100644
--- a/src/misc_cmd.cpp
+++ b/src/misc_cmd.cpp
@@ -173,9 +173,9 @@ CommandCost CmdPause(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2,
PauseMode prev_mode = _pause_mode;
if (p2 == 0) {
- _pause_mode = _pause_mode & ~p1;
+ _pause_mode = static_cast<PauseMode>(_pause_mode & (byte)~p1);
} else {
- _pause_mode = _pause_mode | p1;
+ _pause_mode = static_cast<PauseMode>(_pause_mode | (byte)p1);
}
NetworkHandlePauseChange(prev_mode, (PauseMode)p1);