mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r10048) -Fix (r6455): Don't use override engine type for articulated wagon parts.
This commit is contained in:
parent
4ffe147bd4
commit
07c34b2628
@ -2595,7 +2595,7 @@ SpriteID GetVehiclePalette(const Vehicle *v)
|
|||||||
{
|
{
|
||||||
if (v->type == VEH_TRAIN) {
|
if (v->type == VEH_TRAIN) {
|
||||||
return GetEngineColourMap(
|
return GetEngineColourMap(
|
||||||
(v->u.rail.first_engine != INVALID_ENGINE && (IsArticulatedPart(v) || UsesWagonOverride(v))) ?
|
(v->u.rail.first_engine != INVALID_ENGINE && (UsesWagonOverride(v) || (IsArticulatedPart(v) && RailVehInfo(v->engine_type)->railveh_type != RAILVEH_WAGON))) ?
|
||||||
v->u.rail.first_engine : v->engine_type,
|
v->u.rail.first_engine : v->engine_type,
|
||||||
v->owner, v->u.rail.first_engine, v);
|
v->owner, v->u.rail.first_engine, v);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user