From 937b8830e11594e60a3dd0f3dd65a4e06a0690b3 Mon Sep 17 00:00:00 2001 From: OTHGMars Date: Mon, 16 Jun 2014 20:59:19 -0400 Subject: [PATCH] Vehicle Mounting --- Engine/source/T3D/vehicles/vehicle.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Engine/source/T3D/vehicles/vehicle.cpp b/Engine/source/T3D/vehicles/vehicle.cpp index b6516fc3f..5533099b3 100644 --- a/Engine/source/T3D/vehicles/vehicle.cpp +++ b/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]);