Skip to content

Commit 07e7c9e

Browse files
JumpjetAccel=0 causes VehicleType with Locomotor=Jumpjet to remain stationary
1 parent 79a2f80 commit 07e7c9e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Ext/Techno/Body.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,10 @@ bool TechnoExt::CannotMove(UnitClass* pThis)
756756
const auto pType = pThis->Type;
757757

758758
if (pType->Speed == 0
759-
&& !(pType->Locomotor == LocomotionClass::CLSIDs::Jumpjet && !pType->Teleporter))
759+
&& !(pType->Locomotor == LocomotionClass::CLSIDs::Jumpjet
760+
&& !pType->Teleporter
761+
&& pType->JumpjetAccel != 0
762+
))
760763
return true;
761764

762765
const auto movementRestrictedTo = pType->MovementRestrictedTo;

0 commit comments

Comments
 (0)