diff options
author | peter1138 <peter1138@openttd.org> | 2007-05-20 10:27:43 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-05-20 10:27:43 +0000 |
commit | 45d1c9203048d998041426970911fa214079ae55 (patch) | |
tree | 5f481a2fa49a19480224d1e6cf63f9a883c5a576 /src/vehicle.cpp | |
parent | ee2feef6e702432e835ba6c1c1e3786e763734f1 (diff) | |
download | openttd-45d1c9203048d998041426970911fa214079ae55.tar.xz |
(svn r9889) -Codechange: Use cargo's freight status for choosing livery scheme.
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 8ff8d1de8..f8c0ba4c5 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -2479,7 +2479,7 @@ const Livery *GetEngineLivery(EngineID engine_type, PlayerID player, EngineID pa { if (cargo_type == CT_INVALID) cargo_type = rvi->cargo_type; if (rvi->railveh_type == RAILVEH_WAGON) { - if (cargo_type == CT_PASSENGERS || cargo_type == CT_MAIL || cargo_type == CT_VALUABLES) { + if (!GetCargo(cargo_type)->is_freight) { if (parent_engine_type == INVALID_ENGINE) { scheme = LS_PASSENGER_WAGON_STEAM; } else { |