16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 22:39:18 +02:00

start jolt sound tweaks, ati crash gfx renderer fix, lights event fix

This commit is contained in:
tmj-fstate
2018-10-18 20:10:43 +02:00
parent 841e18f170
commit d91ff01db8
4 changed files with 12 additions and 32 deletions

View File

@@ -3933,7 +3933,7 @@ void TDynamicObject::RenderSounds() {
if( Global.iPause != 0 ) { return; }
if( ( m_startjoltplayed )
&& ( ( MoverParameters->AccSVBased < 0.01 )
&& ( ( std::abs( MoverParameters->AccSVBased ) < 0.01 )
|| ( GetVelocity() < 0.01 ) ) ) {
// if the vehicle comes to a stop set the movement jolt to play when it starts moving again
m_startjoltplayed = false;
@@ -4397,8 +4397,8 @@ void TDynamicObject::RenderSounds() {
// movement start jolt
if( false == m_startjoltplayed ) {
auto const velocity { GetVelocity() };
if( ( MoverParameters->AccSVBased > 0.2 )
&& ( velocity > 2.5 )
if( ( MoverParameters->V > 0.0 ? ( MoverParameters->AccSVBased > 0.1 ) : ( MoverParameters->AccSVBased < 0.1 ) )
&& ( velocity > 1.0 )
&& ( velocity < 15.0 ) ) {
m_startjolt.play( sound_flags::exclusive );
m_startjoltplayed = true;