diff options
author | Darkvater <Darkvater@openttd.org> | 2007-02-14 20:48:00 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2007-02-14 20:48:00 +0000 |
commit | 3053109c635f2874564b9fb5186328ed6fcc496f (patch) | |
tree | cf3ebaa05b0bcce94d367a099923a88fb1303fcf /src | |
parent | 4c0f91e060cced2af9445693c100236cba5d8e8a (diff) | |
download | openttd-3053109c635f2874564b9fb5186328ed6fcc496f.tar.xz |
(svn r8740) -Fix (r8783): GCC warnings about not-handled MP_ values in switch case (glx)
Diffstat (limited to 'src')
-rw-r--r-- | src/oldloader.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/oldloader.cpp b/src/oldloader.cpp index 8adbec5fd..9c59f1e16 100644 --- a/src/oldloader.cpp +++ b/src/oldloader.cpp @@ -1502,7 +1502,7 @@ static bool LoadOldMain(LoadgameState *ls) * clear it for ourselves and let OTTD's rebuild PBS itself */ _m[i].m4 &= 0xF; /* Only keep the lower four bits; upper four is PBS */ break; - case MP_WATER: + case MP_WATER: { /* TTDPatch has all tiles touching water as coast (water)-type, we don't. * This is only true from a certain TTDP version, but there is no harm * in checking all the time */ @@ -1511,7 +1511,8 @@ static bool LoadOldMain(LoadgameState *ls) SetTileType(i, MP_CLEAR); SetTileOwner(i, OWNER_NONE); } - break; + } break; + default: break; } } |