summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newgrf.c1
-rw-r--r--newgrf_engine.c2
-rw-r--r--newgrf_engine.h2
-rw-r--r--train_gui.c2
4 files changed, 4 insertions, 3 deletions
diff --git a/newgrf.c b/newgrf.c
index 55d6ba886..023508e45 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -38,7 +38,6 @@
uint16 _custom_sprites_base;
static int _skip_sprites; // XXX
static uint _file_index; // XXX
-extern int _traininfo_vehicle_pitch;
SpriteID _signal_base = 0;
static GRFFile *_cur_grffile;
diff --git a/newgrf_engine.c b/newgrf_engine.c
index ac3c0415e..0b30b3fcd 100644
--- a/newgrf_engine.c
+++ b/newgrf_engine.c
@@ -15,6 +15,8 @@
#include "newgrf_station.h"
#include "newgrf_spritegroup.h"
+int _traininfo_vehicle_pitch = 0;
+
// TODO: We don't support cargo-specific wagon overrides. Pretty exotic... ;-) --pasky
typedef struct WagonOverride {
diff --git a/newgrf_engine.h b/newgrf_engine.h
index 248de61ee..b5d1aaff3 100644
--- a/newgrf_engine.h
+++ b/newgrf_engine.h
@@ -8,6 +8,8 @@
/** @file newgrf_engine.h
*/
+extern int _traininfo_vehicle_pitch;
+
VARDEF const uint32 _default_refitmasks[NUM_VEHICLE_TYPES];
VARDEF const CargoID _global_cargo_id[NUM_LANDSCAPE][NUM_CARGO];
VARDEF const uint32 _landscape_global_cargo_mask[NUM_LANDSCAPE];
diff --git a/train_gui.c b/train_gui.c
index 119896bf0..bf03979c1 100644
--- a/train_gui.c
+++ b/train_gui.c
@@ -21,8 +21,6 @@
#include "train.h"
#include "newgrf_engine.h"
-int _traininfo_vehicle_pitch = 0;
-
/**
* Draw the purchase info details of train engine at a given location.
* @param x,y location where to draw the info