From b5b449147118624149a356d2582d666e4a9d5a8f Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 13 Feb 2006 22:19:23 +0000 Subject: (svn r3603) - NewGRF: Support loading of AI rank data --- newgrf.c | 10 +++++----- 1 file 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 -- cgit v1.2.3-70-g09d2