diff options
author | frosch <frosch@openttd.org> | 2014-03-26 21:27:37 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2014-03-26 21:27:37 +0000 |
commit | 6562ec940243af1df3c658482378acb33a184d5f (patch) | |
tree | 59e7888675a7481571a2e0f65c50cfedde6de34f /src | |
parent | 4e46e925545c82306b4c7fc2a5fe8913cf00c3bb (diff) | |
download | openttd-6562ec940243af1df3c658482378acb33a184d5f.tar.xz |
(svn r26430) -Feature(ette): Add vehicle modflag 1 (unloading in progress).
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_engine.cpp | 1 |
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); |