summaryrefslogtreecommitdiff
path: root/src/newgrf.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-07-17 22:00:13 +0000
committerfrosch <frosch@openttd.org>2009-07-17 22:00:13 +0000
commitf129634f524b38bcb00f5e7b24ccd8a982a16ca9 (patch)
treea1c3aae7a3c1fb5ba73d72a46b0adb1e676bb5c0 /src/newgrf.h
parent82ac703e2d0598a0f282ac25b91f7d437fff808c (diff)
downloadopenttd-f129634f524b38bcb00f5e7b24ccd8a982a16ca9.tar.xz
(svn r16867) -Feature(ette): Turn variable 0E/8E (vertical offset for trains in depot) and variable 1E/9E bit 3 (wagon width in depot) into grf-local variables.
Diffstat (limited to 'src/newgrf.h')
-rw-r--r--src/newgrf.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/newgrf.h b/src/newgrf.h
index 23122e780..340dcb1f5 100644
--- a/src/newgrf.h
+++ b/src/newgrf.h
@@ -29,7 +29,7 @@ enum GrfMiscBit {
GMB_DESERT_TREES_FIELDS = 0, // Unsupported.
GMB_DESERT_PAVED_ROADS = 1,
GMB_FIELD_BOUNDING_BOX = 2, // Unsupported.
- GMB_TRAIN_WIDTH_32_PIXELS = 3,
+ GMB_TRAIN_WIDTH_32_PIXELS = 3, ///< Use 32 pixels per train vehicle in depot gui and vehicle details. Never set in the global variable; @see GRFFile::traininfo_vehicle_width
GMB_AMBIENT_SOUND_CALLBACK = 4, // Unsupported.
GMB_CATENARY_ON_3RD_TRACK = 5, // Unsupported.
};
@@ -60,6 +60,7 @@ struct GRFLabel {
struct GRFLabel *next;
};
+/** Dynamic data of a loaded NewGRF */
struct GRFFile {
char *filename;
bool is_ottdfile;
@@ -105,6 +106,9 @@ struct GRFFile {
uint8 railtype_max;
RailTypeLabel *railtype_list;
+
+ int traininfo_vehicle_pitch; ///< Vertical offset for draing train images in depot GUI and vehicle details
+ int traininfo_vehicle_width; ///< Width (in pixels) of a 8/8 train vehicle in depot GUI and vehicle details
};
extern GRFFile *_first_grffile;