diff options
author | rubidium <rubidium@openttd.org> | 2007-05-25 08:13:01 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-25 08:13:01 +0000 |
commit | 21546a66f3e3c1871ba6d7cd2dcef6148e1ecf21 (patch) | |
tree | 20cb72fbcb2123cac75bfc9f3a06d9e590278b3a /src/vehicle.cpp | |
parent | a507341089dce55ef0059f5b5601794b9ec251d9 (diff) | |
download | openttd-21546a66f3e3c1871ba6d7cd2dcef6148e1ecf21.tar.xz |
(svn r9917) -Codechange: prepare some more areas for more road types.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 97c14281a..e96145c01 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -241,7 +241,7 @@ void AfterLoadVehicles() switch (v->type) { case VEH_ROAD: v->cur_image = GetRoadVehImage(v, v->direction); - v->u.road.roadtype = ROADTYPE_ROAD; + v->u.road.roadtype = HASBIT(EngInfo(v->engine_type)->misc_flags, EF_ROAD_TRAM) ? ROADTYPE_TRAM : ROADTYPE_ROAD; v->u.road.compatible_roadtypes = RoadTypeToRoadTypes(v->u.road.roadtype); break; |