(svn r9889) -Codechange: Use cargo's freight status for choosing livery scheme.
authorpeter1138
Sun, 20 May 2007 10:27:43 +0000
changeset 6658 fdd0a344784b
parent 6657 75f1dccae0dd
child 6659 dc6f5b564096
(svn r9889) -Codechange: Use cargo's freight status for choosing livery scheme.
src/vehicle.cpp
--- a/src/vehicle.cpp	Sun May 20 09:17:42 2007 +0000
+++ b/src/vehicle.cpp	Sun May 20 10:27:43 2007 +0000
@@ -2479,7 +2479,7 @@
 					{
 						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 {