summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-31 11:04:56 +0000
committerrubidium <rubidium@openttd.org>2009-05-31 11:04:56 +0000
commit75a818a32540ee05a244aae368fb84bf08b1ffc7 (patch)
treed9ac3bc6190deb4aa368acf997d08b814f8a165b
parent79d5a41b853395d7d4c9c1f7f8c54cdebf8ae98c (diff)
downloadopenttd-75a818a32540ee05a244aae368fb84bf08b1ffc7.tar.xz
(svn r16477) -Fix [FS#2936] (r12650): loading indicator when 'unload' in and 'no loading' is off was pointing to the wrong direction.
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 6e3d420bb..10db2cf0b 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -948,7 +948,7 @@ uint8 CalcPercentVehicleFilled(const Vehicle *v, StringID *colour)
max += v->cargo_cap;
if (v->cargo_cap != 0 && colour != NULL) {
unloading += HasBit(v->vehicle_flags, VF_CARGO_UNLOADING) ? 1 : 0;
- loading |= !(u->current_order.GetUnloadType() & OUFB_UNLOAD) && st->goods[v->cargo_type].days_since_pickup != 255;
+ loading |= !(u->current_order.GetLoadType() & OLFB_NO_LOAD) && st->goods[v->cargo_type].days_since_pickup != 255;
cars++;
}
}