diff --git a/ai/default/default.c b/ai/default/default.c index 8c4d2569e4..f10db36eff 100644 --- a/ai/default/default.c +++ b/ai/default/default.c @@ -22,6 +22,7 @@ #include "../../airport.h" #include "../../depot.h" #include "../../variables.h" +#include "../../bridge.h" #include "default.h" // remove some day perhaps? diff --git a/ai/trolly/build.c b/ai/trolly/build.c index 2d0b25ec54..550f17ceb0 100644 --- a/ai/trolly/build.c +++ b/ai/trolly/build.c @@ -12,6 +12,7 @@ #include "../../engine.h" #include "../../station.h" #include "../../variables.h" +#include "../../bridge.h" #include "../ai.h" // Build HQ diff --git a/ai/trolly/pathfinder.c b/ai/trolly/pathfinder.c index 25b3683ad0..3fc6cb1709 100644 --- a/ai/trolly/pathfinder.c +++ b/ai/trolly/pathfinder.c @@ -11,7 +11,7 @@ #include "trolly.h" #include "../../depot.h" #include "../../tunnel_map.h" -#include "../../variables.h" +#include "../../bridge.h" #include "../ai.h" #define TEST_STATION_NO_DIR 0xFF diff --git a/bridge.h b/bridge.h index 18fcf81de8..d0aca75563 100644 --- a/bridge.h +++ b/bridge.h @@ -5,6 +5,10 @@ #ifndef BRIDGE_H #define BRIDGE_H +enum { + MAX_BRIDGES = 13 +}; + /** Struct containing information about a single bridge type */ typedef struct Bridge { diff --git a/town_cmd.c b/town_cmd.c index 6ece0cc706..4cba570db0 100644 --- a/town_cmd.c +++ b/town_cmd.c @@ -24,6 +24,7 @@ #include "gui.h" #include "unmovable_map.h" #include "variables.h" +#include "bridge.h" enum { /* Max towns: 64000 (8 * 8000) */ diff --git a/variables.h b/variables.h index 47387ba5d6..665a452e59 100644 --- a/variables.h +++ b/variables.h @@ -414,9 +414,6 @@ extern const byte _airport_size_y[]; VARDEF char _screenshot_name[128]; VARDEF byte _vehicle_design_names; -/* tunnelbridge */ -#define MAX_BRIDGES 13 - /* Forking stuff */ VARDEF bool _dedicated_forks;