Use 0 for per-cargo percent loaded value when capacity is 0
This commit is contained in:
@@ -2171,7 +2171,7 @@ uint8 CalcPercentVehicleFilledOfCargo(const Vehicle *front, CargoID cargo)
|
||||
}
|
||||
|
||||
/* Train without capacity */
|
||||
if (max == 0) return 100;
|
||||
if (max == 0) return 0;
|
||||
|
||||
/* Return the percentage */
|
||||
if (count * 2 < max) {
|
||||
|
Reference in New Issue
Block a user