summaryrefslogtreecommitdiff
path: root/newgrf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newgrf.c')
-rw-r--r--newgrf.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/newgrf.c b/newgrf.c
index 7d9011a99..4803acd27 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -353,9 +353,17 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
case 0x1E: { /* Callback */
FOR_EACH_OBJECT {
byte callbacks = grf_load_byte(&buf);
+
rvi[i].callbackmask = callbacks;
}
} break;
+ case 0x21: { /* Shorter vehicle */
+ FOR_EACH_OBJECT {
+ byte shorten_factor = grf_load_byte(&buf);
+
+ rvi[i].shorten_factor = shorten_factor;
+ }
+ } break;
case 0x22: { /* Visual effect */
// see note in engine.h about rvi->visual_effect
FOR_EACH_OBJECT {
@@ -377,7 +385,6 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
case 0x1C: /* Refit cost */
case 0x1F: /* Tractive effort */
case 0x20: /* Air drag */
- case 0x21: /* Shorter tenders */
case 0x24: /* High byte of vehicle weight */
case 0x25: /* User-defined bit mask to set when checking veh. var. 42 */
case 0x26: /* Retire vehicle early */