Browse Source

Vehicle Mounting

OTHGMars 11 years ago
parent
commit
937b8830e1
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Engine/source/T3D/vehicles/vehicle.cpp

+ 4 - 0
Engine/source/T3D/vehicles/vehicle.cpp

@@ -859,6 +859,8 @@ void Vehicle::processTick(const Move* move)
    PROFILE_SCOPE( Vehicle_ProcessTick );
 
    Parent::processTick(move);
+   if ( isMounted() )
+      return;
 
    // Warp to catch up to server
    if (mDelta.warpCount < mDelta.warpTicks)
@@ -929,6 +931,8 @@ void Vehicle::interpolateTick(F32 dt)
    PROFILE_SCOPE( Vehicle_InterpolateTick );
 
    Parent::interpolateTick(dt);
+   if ( isMounted() )
+      return;
 
    if(dt == 0.0f)
       setRenderPosition(mDelta.pos, mDelta.rot[1]);