diff options
author | tron <tron@openttd.org> | 2004-12-03 07:43:00 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2004-12-03 07:43:00 +0000 |
commit | c00258237e0fd63d23fb2015c78c070b72b2e9d9 (patch) | |
tree | e39a57439be0a2878fec3147140ca4e16f6b00e6 /ai.c | |
parent | b7f0b278fbff5721557c2f7d06f0f1892ed7bd39 (diff) | |
download | openttd-c00258237e0fd63d23fb2015c78c070b72b2e9d9.tar.xz |
(svn r907) Sprinkle holy ANSI water:
- "inline" must before the return type (and after "static")
- Initialise all struct members, not just some of them
- Remove (one) spurious semicolon
Diffstat (limited to 'ai.c')
-rw-r--r-- | ai.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1936,7 +1936,7 @@ static bool AiCheckRailPathBetter(AiRailFinder *arf, const byte *p) return better; } -static void FORCEINLINE AiCheckBuildRailBridgeHere(AiRailFinder *arf, TileIndex tile, const byte *p) +static inline void AiCheckBuildRailBridgeHere(AiRailFinder *arf, TileIndex tile, const byte *p) { TileIndex tile_new; bool flag; @@ -1976,7 +1976,7 @@ static void FORCEINLINE AiCheckBuildRailBridgeHere(AiRailFinder *arf, TileIndex } } -static void FORCEINLINE AiCheckBuildRailTunnelHere(AiRailFinder *arf, TileIndex tile, const byte *p) +static inline void AiCheckBuildRailTunnelHere(AiRailFinder *arf, TileIndex tile, const byte *p) { FindLandscapeHeightByTile(&arf->ti, tile); @@ -2813,7 +2813,7 @@ static bool AiBuildRoadHelper(uint tile, int flags, int type) return DoCommandByTile(tile, _road_bits[type], 0, flags, CMD_BUILD_ROAD) != CMD_ERROR; } -static void FORCEINLINE AiCheckBuildRoadBridgeHere(AiRoadFinder *arf, TileIndex tile, const byte *p) +static inline void AiCheckBuildRoadBridgeHere(AiRoadFinder *arf, TileIndex tile, const byte *p) { TileIndex tile_new; bool flag; @@ -2853,7 +2853,7 @@ static void FORCEINLINE AiCheckBuildRoadBridgeHere(AiRoadFinder *arf, TileIndex } } -static void FORCEINLINE AiCheckBuildRoadTunnelHere(AiRoadFinder *arf, TileIndex tile, const byte *p) +static inline void AiCheckBuildRoadTunnelHere(AiRoadFinder *arf, TileIndex tile, const byte *p) { FindLandscapeHeightByTile(&arf->ti, tile); |