summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-09-30 20:51:20 +0000
committerpeter1138 <peter1138@openttd.org>2005-09-30 20:51:20 +0000
commiteb1d025d082163377b1d22b4e32d5a998544abe7 (patch)
treec268881476776e638cad8f6371ae8ba64bf6de25
parented8c9c91d66f593dc3fae5cef4469ded311f6d75 (diff)
downloadopenttd-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/newgrf.c b/newgrf.c
index ef9d161e2..105f78388 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 */