(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)

This commit is contained in:
rubidium
2008-10-14 18:38:51 +00:00
parent 03bef3fb5b
commit 272b2ef0e9
22 changed files with 45 additions and 45 deletions

View File

@@ -222,7 +222,7 @@ CommandCost CmdBuildShipDepot(TileIndex tile, uint32 flags, uint32 p1, uint32 p2
if (flags & DC_EXEC) {
Depot *depot = new Depot(tile);
depot->town_index = ClosestTownFromTile(tile, (uint)-1)->index;
depot->town_index = ClosestTownFromTile(tile, UINT_MAX)->index;
MakeShipDepot(tile, _current_company, DEPOT_NORTH, axis, wc1);
MakeShipDepot(tile2, _current_company, DEPOT_SOUTH, axis, wc2);