(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.
DrawString(this->widget[DEPOT_WIDGET_MATRIX].left,this->widget[DEPOT_WIDGET_MATRIX].right-1,y+4,STR_TINY_BLACK,TC_FROMSTRING,SA_RIGHT);// Draw the counter
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 {
structGRFLabel*next;
};
/** Dynamic data of a loaded NewGRF */
structGRFFile{
char*filename;
boolis_ottdfile;
@ -105,6 +106,9 @@ struct GRFFile {
uint8railtype_max;
RailTypeLabel*railtype_list;
inttraininfo_vehicle_pitch;///< Vertical offset for draing train images in depot GUI and vehicle details
inttraininfo_vehicle_width;///< Width (in pixels) of a 8/8 train vehicle in depot GUI and vehicle details