Skip to content

Commit 20f6d3b

Browse files
committed
Turrets, as well as any other pinned MOS, no longer get pushed out of terrain on deep check or when spawned because PinStrength is respected by MoveOutOfTerrain, marking any potential collisions resolved without checking.
1 parent 17acecf commit 20f6d3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Entities/MOSRotating.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ void MOSRotating::RemoveAttachablesWhenGibbing(const Vector& impactImpulse, Mova
10401040
}
10411041

10421042
bool MOSRotating::MoveOutOfTerrain(unsigned char strongerThan) {
1043-
return m_pAtomGroup->ResolveTerrainIntersection(m_Pos, strongerThan);
1043+
return (m_PinStrength <= 0) ? m_pAtomGroup->ResolveTerrainIntersection(m_Pos, strongerThan) : true;
10441044
}
10451045

10461046
void MOSRotating::ApplyForces() {

0 commit comments

Comments
 (0)