summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ai/default/default.c1
-rw-r--r--ai/trolly/build.c1
-rw-r--r--ai/trolly/pathfinder.c2
-rw-r--r--bridge.h4
-rw-r--r--town_cmd.c1
-rw-r--r--variables.h3
6 files changed, 8 insertions, 4 deletions
diff --git a/ai/default/default.c b/ai/default/default.c
index 8c4d2569e..f10db36ef 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 2d0b25ec5..550f17ceb 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 25b3683ad..3fc6cb170 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 18fcf81de..d0aca7556 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 6ece0cc70..4cba570db 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 47387ba5d..665a452e5 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;