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:
10
Train.cpp
10
Train.cpp
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user