From 793a0099d41f0f0550e9ce386210d33855633228 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sat, 7 Jan 2006 13:26:52 +0000 Subject: (svn r3386) - NewGRF: Small comment update, and fix for possible issue with engine class not getting set. --- newgrf.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'newgrf.c') diff --git a/newgrf.c b/newgrf.c index 90a777a9e..908e719f9 100644 --- a/newgrf.c +++ b/newgrf.c @@ -333,8 +333,13 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf ret = true; } break; case 0x19: { /* Engine traction type */ - /* TODO: What do the individual numbers mean? - * XXX: And in what base are they, in fact? --pasky */ + /* What do the individual numbers mean? + * 0x00 .. 0x07: Steam + * 0x08 .. 0x27: Diesel + * 0x28 .. 0x31: Electric + * 0x32 .. 0x37: Monorail + * 0x38 .. 0x41: Maglev + */ FOR_EACH_OBJECT { uint8 traction = grf_load_byte(&buf); int engclass; @@ -343,7 +348,7 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf engclass = 0; else if (traction <= 0x27) engclass = 1; - else if (traction <= 0x31) + else if (traction <= 0x41) engclass = 2; else break; -- cgit v1.2.3-54-g00ecf