Mercurial > hg > openttd
changeset 3023:02ee568e0a3c draft
(svn r3603) - NewGRF: Support loading of AI rank data
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Mon, 13 Feb 2006 22:19:23 +0000 |
parents | ffd95da68af1 |
children | b2a201ca6188 |
files | newgrf.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/newgrf.c +++ b/newgrf.c @@ -334,13 +334,13 @@ 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