From e29d60b21bc1f7a01ebdd63361fd298eb36ff074 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sun, 14 May 2006 20:58:12 +0000 Subject: (svn r4869) - NewGRF: support setting train list vehicle width to 32 instead of 29 pixels, for sets which use 32 pixel long engines/wagons. --- newgrf.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'newgrf.c') diff --git a/newgrf.c b/newgrf.c index 8f26af7d6..f304ba60f 100644 --- a/newgrf.c +++ b/newgrf.c @@ -2457,6 +2457,8 @@ static void ParamSet(byte *buf, int len) case 0x9E: /* Miscellaneous GRF features */ _misc_grf_features = res; + /* Set train list engine width */ + _traininfo_vehicle_width = HASBIT(res, 3) ? 32 : 29; break; default: @@ -2648,6 +2650,11 @@ static void ResetNewGRFData(void) // Add engine type to engine data. This is needed for the refit precalculation. AddTypeToEngines(); + /* Reset misc GRF features and train list display variables */ + _misc_grf_features = 0; + _traininfo_vehicle_pitch = 0; + _traininfo_vehicle_width = 29; + InitializeSpriteGroupPool(); } -- cgit v1.2.3-70-g09d2