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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user