diff options
author | frosch <frosch@openttd.org> | 2009-02-18 20:35:02 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-02-18 20:35:02 +0000 |
commit | 3542b1dced698e6518c2f2bb6e397f316dc1e596 (patch) | |
tree | 95bc690b6579dc1773f3a6313c1ad8692fe1def6 | |
parent | b832881a6efe70b0618083ce18957eae881f9d19 (diff) | |
download | openttd-3542b1dced698e6518c2f2bb6e397f316dc1e596.tar.xz |
(svn r15516) -Fix (r10097): Livery overrides for articulated parts of roadvehicles were not applied.
-rw-r--r-- | src/newgrf_engine.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp index 6c502b977..bda726d92 100644 --- a/src/newgrf_engine.cpp +++ b/src/newgrf_engine.cpp @@ -840,6 +840,9 @@ static const SpriteGroup *GetVehicleSpriteGroup(EngineID engine, const Vehicle * * as v->cargo_type is temporary changed to the new type */ group = use_cache ? v->u.rail.cached_override : GetWagonOverrideSpriteSet(v->engine_type, v->cargo_type, v->u.rail.first_engine); if (group != NULL) return group; + } else if (v->type == VEH_ROAD) { + group = GetWagonOverrideSpriteSet(v->engine_type, v->cargo_type, v->u.road.first_engine); + if (group != NULL) return group; } } |