16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 00:09:19 +02:00

milek7/sim branch network code import

This commit is contained in:
tmj-fstate
2020-02-16 03:03:17 +01:00
parent 2ce3091e8f
commit 7a0c89f508
56 changed files with 2609 additions and 426 deletions

View File

@@ -194,7 +194,7 @@ sound_source::deserialize_mapping( cParser &Input ) {
m_pitchvariation = (
variation == 0.0f ?
1.0f :
0.01f * static_cast<float>( Random( 100.0 - variation, 100.0 + variation ) ) );
0.01f * static_cast<float>( LocalRandom( 100.0 - variation, 100.0 + variation ) ) );
}
else if( key == "startoffset:" ) {
m_startoffset =
@@ -353,7 +353,7 @@ sound_source::play( int const Flags ) {
// initialize emitter-specific pitch variation if it wasn't yet set
if( m_pitchvariation == 0.f ) {
m_pitchvariation = 0.01f * static_cast<float>( Random( 97.5, 102.5 ) );
m_pitchvariation = 0.01f * static_cast<float>( LocalRandom( 97.5, 102.5 ) );
}
/*
if( ( ( m_flags & sound_flags::exclusive ) != 0 )