mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r13638) -Fix: signed/unsigned warning for MSVC9 and gcc2
This commit is contained in:
parent
35c8cdb5fa
commit
0b75129c24
@ -163,7 +163,7 @@ static CommandCost CheckBridgeSlopeSouth(Axis axis, Slope *tileh, uint *z)
|
|||||||
bool CheckBridge_Stuff(BridgeType bridge_type, uint bridge_len, uint32 flags)
|
bool CheckBridge_Stuff(BridgeType bridge_type, uint bridge_len, uint32 flags)
|
||||||
{
|
{
|
||||||
if (flags & DC_QUERY_COST) {
|
if (flags & DC_QUERY_COST) {
|
||||||
return bridge_len <= (_settings_game.construction.longbridges ? 100 : 16);
|
return bridge_len <= (_settings_game.construction.longbridges ? 100U : 16U);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bridge_type >= MAX_BRIDGES) return false;
|
if (bridge_type >= MAX_BRIDGES) return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user