(svn r4910) - NewGRF: add and initialize cargo subtype for vehicle visual variations

This commit is contained in:
2006-05-19 10:04:03 +00:00
parent 62dbc36741
commit cd6ab6178c
6 changed files with 10 additions and 1 deletions

View File

@@ -156,6 +156,7 @@ int32 CmdBuildRoadVeh(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
v->spritenum = rvi->image_index;
v->cargo_type = rvi->cargo_type;
v->cargo_subtype = 0;
v->cargo_cap = rvi->capacity;
// v->cargo_count = 0;
v->value = cost;