summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-02-13 22:19:23 +0000
committerpeter1138 <peter1138@openttd.org>2006-02-13 22:19:23 +0000
commitb5b449147118624149a356d2582d666e4a9d5a8f (patch)
treefdcde5cbb2a15c33009d99cb09a7881c3ee93fb6
parent601b226f0423d524346a3b437f11b2a389c8b3e1 (diff)
downloadopenttd-b5b449147118624149a356d2582d666e4a9d5a8f.tar.xz
(svn r3603) - NewGRF: Support loading of AI rank data
-rw-r--r--newgrf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/newgrf.c b/newgrf.c
index d8b0c386f..155afa828 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -334,13 +334,13 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
rvi[i].base_cost = cfactor;
}
} break;
- case 0x18: { /* AI rank */
- /* TODO: _railveh_score should be merged to _rail_vehicle_info. */
+
+ case 0x18: // AI rank
FOR_EACH_OBJECT {
- grf_load_byte(&buf);
+ rvi[i].ai_rank = grf_load_byte(&buf);
}
- ret = true;
- } break;
+ break;
+
case 0x19: { /* Engine traction type */
/* What do the individual numbers mean?
* 0x00 .. 0x07: Steam