Code:
// see if simulation made any changes, if no, then do the restore, otherwise,
// leave new values in
if ( entity->WorldAlignMins() == change->m_vecMins &&
entity->WorldAlignMaxs() == change->m_vecMaxs )
{
// Restore it
entity->SetSize( restore->m_vecMins, restore->m_vecMaxs );
}
}
Code:
// If it moved really far, just leave the entity in the new spot!!!
if ( delta.LengthSqr() < LAG_COMPENSATION_TELEPORTED_DISTANCE_SQR )