diff options
author | rubidium <rubidium@openttd.org> | 2009-03-14 18:16:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-14 18:16:29 +0000 |
commit | 9d018723b7bab3341cd455708a6cd98283d75c34 (patch) | |
tree | 52ab96dc0e1aa14f6c966c67c4a94ba1762f9c15 /src/ai | |
parent | 1692ce83122d1ed15206f160aea339761b173174 (diff) | |
download | openttd-9d018723b7bab3341cd455708a6cd98283d75c34.tar.xz |
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/api/ai_bridge.cpp | 4 | ||||
-rw-r--r-- | src/ai/api/ai_rail.cpp | 4 | ||||
-rw-r--r-- | src/ai/api/ai_road.cpp | 2 | ||||
-rw-r--r-- | src/ai/api/ai_testmode.cpp | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/ai/api/ai_bridge.cpp b/src/ai/api/ai_bridge.cpp index 03c457d4c..58c52245e 100644 --- a/src/ai/api/ai_bridge.cpp +++ b/src/ai/api/ai_bridge.cpp @@ -32,7 +32,7 @@ static void _DoCommandReturnBuildBridge2(class AIInstance *instance) } /* This can never happen, as in test-mode this callback is never executed, - * and in execute-mode, the other callback is called. */ + * and in execute-mode, the other callback is called. */ NOT_REACHED(); } @@ -45,7 +45,7 @@ static void _DoCommandReturnBuildBridge1(class AIInstance *instance) } /* This can never happen, as in test-mode this callback is never executed, - * and in execute-mode, the other callback is called. */ + * and in execute-mode, the other callback is called. */ NOT_REACHED(); } diff --git a/src/ai/api/ai_rail.cpp b/src/ai/api/ai_rail.cpp index bce4719ca..7719d5576 100644 --- a/src/ai/api/ai_rail.cpp +++ b/src/ai/api/ai_rail.cpp @@ -316,7 +316,7 @@ static uint32 SimulateDrag(TileIndex from, TileIndex tile, TileIndex *to) EnforcePrecondition(false, ::IsValidTile(tile)); EnforcePrecondition(false, ::IsValidTile(to)); EnforcePrecondition(false, ::DistanceManhattan(from, tile) == 1); - EnforcePrecondition(false, ::DistanceManhattan(tile,to) >= 1); + EnforcePrecondition(false, ::DistanceManhattan(tile, to) >= 1); EnforcePrecondition(false, IsRailTypeAvailable(GetCurrentRailType())); int diag_offset = abs(abs((int)::TileX(to) - (int)::TileX(tile)) - abs((int)::TileY(to) - (int)::TileY(tile))); EnforcePrecondition(false, diag_offset <= 1 || @@ -333,7 +333,7 @@ static uint32 SimulateDrag(TileIndex from, TileIndex tile, TileIndex *to) EnforcePrecondition(false, ::IsValidTile(tile)); EnforcePrecondition(false, ::IsValidTile(to)); EnforcePrecondition(false, ::DistanceManhattan(from, tile) == 1); - EnforcePrecondition(false, ::DistanceManhattan(tile,to) >= 1); + EnforcePrecondition(false, ::DistanceManhattan(tile, to) >= 1); int diag_offset = abs(abs((int)::TileX(to) - (int)::TileX(tile)) - abs((int)::TileY(to) - (int)::TileY(tile))); EnforcePrecondition(false, diag_offset <= 1 || (::TileX(from) == ::TileX(tile) && ::TileX(tile) == ::TileX(to)) || diff --git a/src/ai/api/ai_road.cpp b/src/ai/api/ai_road.cpp index 8285ee617..4cced8873 100644 --- a/src/ai/api/ai_road.cpp +++ b/src/ai/api/ai_road.cpp @@ -395,7 +395,7 @@ static bool NormaliseTileOffset(int32 *tile) static bool NeighbourHasReachableRoad(::RoadTypes rts, TileIndex start_tile, DiagDirection neighbour) { TileIndex neighbour_tile = ::TileAddByDiagDir(start_tile, neighbour); - if ((rts & ::GetRoadTypes(neighbour_tile)) == 0) return false; + if ((rts & ::GetRoadTypes(neighbour_tile)) == 0) return false; switch (::GetTileType(neighbour_tile)) { case MP_ROAD: diff --git a/src/ai/api/ai_testmode.cpp b/src/ai/api/ai_testmode.cpp index 1b09fa699..484333b42 100644 --- a/src/ai/api/ai_testmode.cpp +++ b/src/ai/api/ai_testmode.cpp @@ -8,7 +8,7 @@ bool AITestMode::ModeProc(TileIndex tile, uint32 p1, uint32 p2, uint procc, CommandCost costs) { /* In test mode we only return 'false', telling the DoCommand it - * should stop after testing the command and return with that result. */ + * should stop after testing the command and return with that result. */ return false; } |