From 6562ec940243af1df3c658482378acb33a184d5f Mon Sep 17 00:00:00 2001 From: frosch Date: Wed, 26 Mar 2014 21:27:37 +0000 Subject: (svn r26430) -Feature(ette): Add vehicle modflag 1 (unloading in progress). --- src/newgrf_engine.cpp | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3-54-g00ecf