diff options
author | rubidium <rubidium@openttd.org> | 2007-05-24 22:41:50 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-24 22:41:50 +0000 |
commit | 821e58ac9514f7fcd43e01115c4dc2a09b4ee45f (patch) | |
tree | 4ec491716328387ce65a5c1f45b836b6f5f57ce2 /src/vehicle.cpp | |
parent | d0a39a231a6c459a85cabb72fc7d4de8a24d9c93 (diff) | |
download | openttd-821e58ac9514f7fcd43e01115c4dc2a09b4ee45f.tar.xz |
(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index b2bfecad7..97c14281a 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -239,8 +239,13 @@ void AfterLoadVehicles() FOR_ALL_VEHICLES(v) { switch (v->type) { + case VEH_ROAD: + v->cur_image = GetRoadVehImage(v, v->direction); + v->u.road.roadtype = ROADTYPE_ROAD; + v->u.road.compatible_roadtypes = RoadTypeToRoadTypes(v->u.road.roadtype); + break; + case VEH_TRAIN: v->cur_image = GetTrainImage(v, v->direction); break; - case VEH_ROAD: v->cur_image = GetRoadVehImage(v, v->direction); break; case VEH_SHIP: v->cur_image = GetShipImage(v, v->direction); break; case VEH_AIRCRAFT: if (IsNormalAircraft(v)) { |