diff options
author | peter1138 <peter1138@openttd.org> | 2008-03-04 12:14:34 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-03-04 12:14:34 +0000 |
commit | debabbbd9aac8ac119d8d09a907ae9f97a7eb471 (patch) | |
tree | 5841819315afbb068ecf4e0ec50dc7d3320852a1 /src/misc_cmd.cpp | |
parent | 475f6ca3e397dcd0780fb3012149480953dfc637 (diff) | |
download | openttd-debabbbd9aac8ac119d8d09a907ae9f97a7eb471.tar.xz |
(svn r12335) -Codechange: Don't stuff signed values into a unsigned variable when the variable can just be unsigned...
Diffstat (limited to 'src/misc_cmd.cpp')
-rw-r--r-- | src/misc_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc_cmd.cpp b/src/misc_cmd.cpp index 87b945296..5781f7d34 100644 --- a/src/misc_cmd.cpp +++ b/src/misc_cmd.cpp @@ -314,11 +314,11 @@ CommandCost CmdPause(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) _pause_game += (p1 == 0) ? -1 : 1; switch (_pause_game) { - case (byte)-4: - case (byte)-1: + case -4: + case -1: _pause_game = 0; break; - case (byte)-3: + case -3: ShowQuery( STR_NEWGRF_UNPAUSE_WARNING_TITLE, STR_NEWGRF_UNPAUSE_WARNING, |