1
0
Fork 0

(svn r8740) -Fix (r8783): GCC warnings about not-handled MP_ values in switch case (glx)

release/0.6
Darkvater 2007-02-14 20:48:00 +00:00
parent 3a86ae8ba4
commit 32d2a012e4
1 changed files with 3 additions and 2 deletions

View File

@ -1502,7 +1502,7 @@ static bool LoadOldMain(LoadgameState *ls)
* clear it for ourselves and let OTTD's rebuild PBS itself */ * 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 */ _m[i].m4 &= 0xF; /* Only keep the lower four bits; upper four is PBS */
break; break;
case MP_WATER: case MP_WATER: {
/* TTDPatch has all tiles touching water as coast (water)-type, we don't. /* 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 * This is only true from a certain TTDP version, but there is no harm
* in checking all the time */ * in checking all the time */
@ -1511,7 +1511,8 @@ static bool LoadOldMain(LoadgameState *ls)
SetTileType(i, MP_CLEAR); SetTileType(i, MP_CLEAR);
SetTileOwner(i, OWNER_NONE); SetTileOwner(i, OWNER_NONE);
} }
break; } break;
default: break;
} }
} }