Skip to content

Commit cd90509

Browse files
committed
lasermine: make following parent's movement more correct
1 parent 0c4cc89 commit cd90509

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/game/server/swarm/asw_laser_mine.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ void CASW_Laser_Mine::SpawnFlipThink()
188188
{
189189
if ( !m_bIsSpawnLanded )
190190
{
191-
Vector vecVelStop( 0,0,0 );
192-
SetAbsVelocity( vecVelStop );
191+
CBaseEntity *pParent = GetMoveParent();
192+
SetAbsVelocity( pParent ? pParent->GetAbsVelocity() : Vector( 0, 0, 0 ) );
193193

194194
SetAbsOrigin( m_vecSpawnFlipEndPos );
195195

0 commit comments

Comments
 (0)