summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2014-03-26 21:27:37 +0000
committerfrosch <frosch@openttd.org>2014-03-26 21:27:37 +0000
commit6562ec940243af1df3c658482378acb33a184d5f (patch)
tree59e7888675a7481571a2e0f65c50cfedde6de34f
parent4e46e925545c82306b4c7fc2a5fe8913cf00c3bb (diff)
downloadopenttd-6562ec940243af1df3c658482378acb33a184d5f.tar.xz
(svn r26430) -Feature(ette): Add vehicle modflag 1 (unloading in progress).
-rw-r--r--src/newgrf_engine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp
index 5d3af4105..b5fe5d711 100644
--- a/src/newgrf_engine.cpp
+++ b/src/newgrf_engine.cpp
@@ -716,6 +716,7 @@ static uint32 VehicleGetVariable(Vehicle *v, const VehicleScopeResolver *object,
if (powered && !has_power) SetBit(modflags, 6);
if (HasBit(t->flags, VRF_TOGGLE_REVERSE)) SetBit(modflags, 8);
}
+ if (HasBit(v->vehicle_flags, VF_CARGO_UNLOADING)) SetBit(modflags, 1);
if (HasBit(v->vehicle_flags, VF_BUILT_AS_PROTOTYPE)) SetBit(modflags, 10);
return variable == 0xFE ? modflags : GB(modflags, 8, 8);