From e8796a148ff26842fe6ae442f88119fda6181e7e Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 11 Jan 2009 14:11:06 +0000 Subject: (svn r14991) -Fix: Command-flags is an uint32. --- src/ai/default/default.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/ai') diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp index f2daca8b2..74d9b7ac5 100644 --- a/src/ai/default/default.cpp +++ b/src/ai/default/default.cpp @@ -1634,7 +1634,7 @@ static bool AiCheckTrackResources(TileIndex tile, const AiDefaultBlockData *p, b return true; } -static CommandCost AiDoBuildDefaultRailTrack(TileIndex tile, const AiDefaultBlockData *p, RailType railtype, byte flag) +static CommandCost AiDoBuildDefaultRailTrack(TileIndex tile, const AiDefaultBlockData *p, RailType railtype, uint32 flag) { CommandCost ret; CommandCost total_cost(EXPENSES_CONSTRUCTION); @@ -2622,7 +2622,7 @@ static bool AiCheckRoadResources(TileIndex tile, const AiDefaultBlockData *p, by } static bool _want_road_truck_station; -static CommandCost AiDoBuildDefaultRoadBlock(TileIndex tile, const AiDefaultBlockData *p, byte flag); +static CommandCost AiDoBuildDefaultRoadBlock(TileIndex tile, const AiDefaultBlockData *p, uint32 flag); // Returns rule and cost static int AiFindBestDefaultRoadBlock(TileIndex tile, byte direction, byte cargo, CommandCost *cost) @@ -2643,7 +2643,7 @@ static int AiFindBestDefaultRoadBlock(TileIndex tile, byte direction, byte cargo return -1; } -static CommandCost AiDoBuildDefaultRoadBlock(TileIndex tile, const AiDefaultBlockData *p, byte flag) +static CommandCost AiDoBuildDefaultRoadBlock(TileIndex tile, const AiDefaultBlockData *p, uint32 flag) { CommandCost ret; CommandCost total_cost(EXPENSES_CONSTRUCTION); @@ -2908,7 +2908,7 @@ static bool AiCheckRoadFinished(Company *c) } -static bool AiBuildRoadHelper(TileIndex tile, int flags, int type) +static bool AiBuildRoadHelper(TileIndex tile, uint32 flags, int type) { static const RoadBits _road_bits[] = { ROAD_X, @@ -3398,7 +3398,7 @@ static void AiStateAirportStuff(Company *c) _companies_ai[c->index].state_counter = 0; } -static CommandCost AiDoBuildDefaultAirportBlock(TileIndex tile, const AiDefaultBlockData *p, byte flag) +static CommandCost AiDoBuildDefaultAirportBlock(TileIndex tile, const AiDefaultBlockData *p, uint32 flag) { uint32 avail_airports = GetValidAirports(); CommandCost ret, total_cost(EXPENSES_CONSTRUCTION); -- cgit v1.2.3-70-g09d2