# HG changeset patch # User rubidium # Date 1172514303 0 # Node ID fa42299e967e2e7674da166a9f043251f5b58805 # Parent 5c002c6fbed089d420420d522b33acd679f1bc81 (svn r8908) -Codechange: declaration of DrawBridgeMiddle does not belong in a map accessors header. diff -r 5c002c6fbed0 -r fa42299e967e src/bridge.h --- a/src/bridge.h Mon Feb 26 00:41:24 2007 +0000 +++ b/src/bridge.h Mon Feb 26 18:25:03 2007 +0000 @@ -35,4 +35,6 @@ return &_bridge[i]; } +void DrawBridgeMiddle(const TileInfo* ti); + #endif /* BRIDGE_H */ diff -r 5c002c6fbed0 -r fa42299e967e src/bridge_map.h --- a/src/bridge_map.h Mon Feb 26 00:41:24 2007 +0000 +++ b/src/bridge_map.h Mon Feb 26 18:25:03 2007 +0000 @@ -13,9 +13,6 @@ #include "tile.h" -void DrawBridgeMiddle(const TileInfo* ti); // XXX - - static inline bool IsBridge(TileIndex t) { assert(IsTileType(t, MP_TUNNELBRIDGE)); diff -r 5c002c6fbed0 -r fa42299e967e src/clear_cmd.cpp --- a/src/clear_cmd.cpp Mon Feb 26 00:41:24 2007 +0000 +++ b/src/clear_cmd.cpp Mon Feb 26 18:25:03 2007 +0000 @@ -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" diff -r 5c002c6fbed0 -r fa42299e967e src/rail_cmd.cpp --- a/src/rail_cmd.cpp Mon Feb 26 00:41:24 2007 +0000 +++ b/src/rail_cmd.cpp Mon Feb 26 18:25:03 2007 +0000 @@ -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" diff -r 5c002c6fbed0 -r fa42299e967e src/road_cmd.cpp --- a/src/road_cmd.cpp Mon Feb 26 00:41:24 2007 +0000 +++ b/src/road_cmd.cpp Mon Feb 26 18:25:03 2007 +0000 @@ -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" diff -r 5c002c6fbed0 -r fa42299e967e src/unmovable_cmd.cpp --- a/src/unmovable_cmd.cpp Mon Feb 26 00:41:24 2007 +0000 +++ b/src/unmovable_cmd.cpp Mon Feb 26 18:25:03 2007 +0000 @@ -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 diff -r 5c002c6fbed0 -r fa42299e967e src/water_cmd.cpp --- a/src/water_cmd.cpp Mon Feb 26 00:41:24 2007 +0000 +++ b/src/water_cmd.cpp Mon Feb 26 18:25:03 2007 +0000 @@ -3,6 +3,7 @@ #include "stdafx.h" #include "openttd.h" #include "bridge_map.h" +#include "bridge.h" #include "cmd_helper.h" #include "station_map.h" #include "table/sprites.h"