build 200604. sound loading logging enhancement, driving aid throttle data enhancement, external camera movement control fix

This commit is contained in:
tmj-fstate
2020-06-05 16:45:52 +02:00
parent ad1a14082c
commit 03561b11d8
9 changed files with 28 additions and 17 deletions

View File

@@ -14,6 +14,7 @@ http://mozilla.org/MPL/2.0/.
#include "utilities.h"
#include "Console.h"
#include "Timer.h"
#include "Driver.h"
#include "DynObj.h"
#include "MOVER.h"
@@ -188,7 +189,8 @@ void TCamera::Update()
// attached movement position update
auto movement { Velocity * -2.0 };
movement.y = -movement.y;
if( m_owner->MoverParameters->CabOccupied < 0 ) {
if( ( m_owner->ctOwner )
&& ( m_owner->ctOwner->Vehicle()->MoverParameters->CabOccupied < 0 ) ) {
movement *= -1.f;
movement.y = -movement.y;
}