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

Add windsound

This commit is contained in:
2025-01-04 21:25:00 +01:00
parent f59c0f2d2c
commit a8f47baca7
2 changed files with 12 additions and 1 deletions

View File

@@ -8312,6 +8312,16 @@ TTrain::update_sounds( double const Deltatime ) {
}
}
// dzwiek wiatru rozbijajacego sie o szyby w kabinie
if (rsWindSound)
{
if (!FreeFlyModeFlag && !Global.CabWindowOpen && DynamicObject->GetVelocity() > 0.5)
update_sounds_resonancenoise(*rsWindSound);
else
rsWindSound->stop(FreeFlyModeFlag);
}
// dzwiek rezonansu (taki drugi runningnoise w sumie)
if (rsResonanceNoise)
{