Просмотр исходного кода

Merge pull request #1356 from Azaezel/development

handle pathshapes comming in from above players more gracefully
Brian Roberts 8 месяцев назад
Родитель
Сommit
221614383b
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      Engine/source/T3D/player.cpp

+ 3 - 0
Engine/source/T3D/player.cpp

@@ -4771,6 +4771,9 @@ void Player::updateAttachment(){
         Point3F(pos.x, pos.y, pos.z - 1.0f ),
         PathShapeObjectType, &rInfo))
     {
+       if ((mJumpSurfaceLastContact < JumpSkipContactsMax) && !mSwimming)
+          setPosition(rInfo.point, getRotation());
+
        if( rInfo.object->getTypeMask() & PathShapeObjectType) //Ramen
        {
           if (getParent() == NULL)