diff options
author | peter1138 <peter1138@openttd.org> | 2006-01-07 13:26:52 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-01-07 13:26:52 +0000 |
commit | 5cfbb88bbbee98f5baa9061c1c8e5fe2e5c73a46 (patch) | |
tree | 1c59ab8acd0f3015f6b65ff32347c4dfbe10ab13 | |
parent | 90d610bc6a96003e68ce869adeace4d5da50e612 (diff) | |
download | openttd-5cfbb88bbbee98f5baa9061c1c8e5fe2e5c73a46.tar.xz |
(svn r3386) - NewGRF: Small comment update, and fix for possible issue with engine class not getting set.
-rw-r--r-- | newgrf.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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; |