Mercurial > hg > openttd
changeset 6160:6bb39697173c draft
(svn r8908) -Codechange: declaration of DrawBridgeMiddle does not belong in a map accessors header.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Mon, 26 Feb 2007 18:25:03 +0000 |
parents | 34ef0dfaddfa |
children | 95988e69636d |
files | src/bridge.h src/bridge_map.h src/clear_cmd.cpp src/rail_cmd.cpp src/road_cmd.cpp src/unmovable_cmd.cpp src/water_cmd.cpp |
diffstat | 7 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/bridge.h +++ b/src/bridge.h @@ -35,4 +35,6 @@ return &_bridge[i]; } +void DrawBridgeMiddle(const TileInfo* ti); + #endif /* BRIDGE_H */
--- a/src/bridge_map.h +++ b/src/bridge_map.h @@ -13,9 +13,6 @@ #include "tile.h" -void DrawBridgeMiddle(const TileInfo* ti); // XXX - - static inline bool IsBridge(TileIndex t) { assert(IsTileType(t, MP_TUNNELBRIDGE));
--- a/src/clear_cmd.cpp +++ b/src/clear_cmd.cpp @@ -15,6 +15,7 @@ #include "command.h" #include "tunnel_map.h" #include "bridge_map.h" +#include "bridge.h" #include "variables.h" #include "table/sprites.h" #include "unmovable_map.h"
--- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -3,6 +3,7 @@ #include "stdafx.h" #include "openttd.h" #include "bridge_map.h" +#include "bridge.h" #include "cmd_helper.h" #include "debug.h" #include "functions.h"
--- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -3,6 +3,7 @@ #include "stdafx.h" #include "openttd.h" #include "bridge_map.h" +#include "bridge.h" #include "cmd_helper.h" #include "rail_map.h" #include "road_map.h"
--- a/src/unmovable_cmd.cpp +++ b/src/unmovable_cmd.cpp @@ -2,7 +2,6 @@ #include "stdafx.h" #include "openttd.h" -#include "bridge_map.h" #include "table/strings.h" #include "table/sprites.h" #include "functions.h" @@ -20,6 +19,7 @@ #include "variables.h" #include "table/unmovable_land.h" #include "genworld.h" +#include "bridge.h" /** Destroy a HQ. * During normal gameplay you can only implicitely destroy a HQ when you are