Fixed flying checkpoints activating multile times

master
krzys-h 2015-08-13 22:32:49 +02:00
parent 74609d9bea
commit 868dec4488
1 changed files with 1 additions and 1 deletions

View File

@ -2542,7 +2542,7 @@ int CPhysics::ObjectAdapt(const Math::Vector &pos, const Math::Vector &angle)
}
}
if ( oType == OBJECT_TARGET2 )
if ( oType == OBJECT_TARGET2 && !pObj->GetLock() )
{
Math::Vector oPos = pObj->GetPosition();
distance = Math::Distance(oPos, iPos);