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 | 72c632742a869c5100ae4879c70575540df7d1ec (patch) | |
tree | 95bc690b6579dc1773f3a6313c1ad8692fe1def6 | |
parent | 993f704eb11a63f40546ccb20bf9a8768ba75a21 (diff) | |
download | openttd-72c632742a869c5100ae4879c70575540df7d1ec.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; } } |