diff options
author | peter1138 <peter1138@openttd.org> | 2005-09-30 20:51:20 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2005-09-30 20:51:20 +0000 |
commit | eb1d025d082163377b1d22b4e32d5a998544abe7 (patch) | |
tree | c268881476776e638cad8f6371ae8ba64bf6de25 | |
parent | ed8c9c91d66f593dc3fae5cef4469ded311f6d75 (diff) | |
download | openttd-eb1d025d082163377b1d22b4e32d5a998544abe7.tar.xz |
(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.
-rw-r--r-- | newgrf.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 */ |