# HG changeset patch # User peter1138 # Date 2005-09-30 20:51:20 # Node ID 05f5914f5ed1ad91613562ddf924ade7eba53f3a # Parent 8ceca0de932b368b63aa688c3c468a5e27247686 (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. diff --git a/newgrf.c b/newgrf.c --- a/newgrf.c +++ b/newgrf.c @@ -226,9 +226,10 @@ static bool RailVehicleChangeInfo(uint e 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 */