From 42db6338505959e6f1d59986615944cc1fb0ca86 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Fri, 30 Sep 2005 20:51:20 +0000 Subject: [PATCH] (svn r3002) -Fix, Newgrf: Max speed of 0xFFFF means no max speed. -Fix, Newgrf: Don't mark an engine as a wagon after setting speed -- wagons can have speed limits. --- newgrf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/newgrf.c b/newgrf.c index ef9d161e28..105f78388b 100644 --- a/newgrf.c +++ b/newgrf.c @@ -226,9 +226,10 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf case 0x09: { /* Speed */ FOR_EACH_OBJECT { uint16 speed = grf_load_word(&buf); + if (speed == 0xFFFF) + speed = 0; rvi[i].max_speed = speed; - dewagonize(speed, engine + i); } } break; case 0x0B: { /* Power */