diff options
author | frosch <frosch@openttd.org> | 2009-01-11 14:11:06 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-01-11 14:11:06 +0000 |
commit | e8796a148ff26842fe6ae442f88119fda6181e7e (patch) | |
tree | bc1c21edc63f5f07a8550f1b628e3f339a5b3866 /src/ai | |
parent | 6c880d1c209e2b0ef076f41998925da0b6ee33d0 (diff) | |
download | openttd-e8796a148ff26842fe6ae442f88119fda6181e7e.tar.xz |
(svn r14991) -Fix: Command-flags is an uint32.
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/default/default.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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); |