summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/train_cmd.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 7dd31711e..ff22b71d7 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -49,8 +49,7 @@ static const TrackBits _state_dir_table[4] = { TRACK_BIT_RIGHT, TRACK_BIT_LOWER,
*/
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;
}