(svn r26430) -Feature(ette): Add vehicle modflag 1 (unloading in progress).

This commit is contained in:
frosch 2014-03-26 21:27:37 +00:00
parent 4e46e92554
commit 6562ec9402
1 changed files with 1 additions and 0 deletions

View File

@ -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);