* Return the cargo weight multiplier to use for a rail vehicle * @param cargo Cargo type to get multiplier for * @return Cargo weight multiplier */
| 66 | * @return Cargo weight multiplier |
| 67 | */ |
| 68 | uint8_t FreightWagonMult(CargoType cargo) |
| 69 | { |
| 70 | if (!CargoSpec::Get(cargo)->is_freight) return 1; |
| 71 | return _settings_game.vehicle.freight_trains; |
| 72 | } |
| 73 | |
| 74 | /** Checks if lengths of all rail vehicles are valid. If not, shows an error message. */ |
| 75 | void CheckTrainsLengths() |
no outgoing calls
no test coverage detected