(svn r8850) -Codechange: Use the cargo type's is_freight flag instead of checking the cargo type to determine if the cargo type is freight cargo type cargo type.
--- a/src/train_cmd.cpp Thu Feb 22 22:09:51 2007 +0000
+++ b/src/train_cmd.cpp Thu Feb 22 22:53:49 2007 +0000
@@ -49,8 +49,7 @@
*/
byte FreightWagonMult(CargoID cargo)
{
- // XXX NewCargos introduces a specific "is freight" flag for this test.
- if (cargo == CT_PASSENGERS || cargo == CT_MAIL) return 1;
+ if (!GetCargo(cargo)->is_freight) return 1;
return _patches.freight_trains;
}