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

build 200711. vehicle-specific rain sound support

This commit is contained in:
tmj-fstate
2020-07-12 04:47:41 +02:00
parent 93c92e5ae9
commit 3ea0d5b074
4 changed files with 23 additions and 4 deletions

View File

@@ -179,7 +179,8 @@ world_environment::update() {
"day:" :
"night:" );
if( Global.Weather == "rain:" ) {
if( ( true == ( FreeFlyModeFlag || Global.CabWindowOpen ) )
&& ( Global.Weather == "rain:" ) ) {
m_precipitationsound.play( sound_flags::exclusive | sound_flags::looping );
}
else {