Mercurial > hg > openttd
diff src/vehicle.cpp @ 6683:6984c0dbbb07 draft
(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 24 May 2007 22:41:50 +0000 |
parents | d0ccddda7bf9 |
children | 91a7c42b133c |
line wrap: on
line diff
--- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -239,8 +239,13 @@ 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)) {