Skip to content

Commit

Permalink
fix: only increase noise when vehicle is airborne (cataclysmbnteam#3806)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarf005 authored Dec 4, 2023
1 parent ea16272 commit c5e21d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4051,7 +4051,7 @@ void vehicle::noise_and_smoke( int load, time_duration time )
spew_field( mufflesmoke, exhaust_part, fd_smoke,
bad_filter ? fd_smoke.obj().get_max_intensity() : 1 );
}
if( is_rotorcraft() ) {
if( is_flying && is_rotorcraft() ) {
noise *= 2;
}
// Cap engine noise to avoid deafening.
Expand Down

0 comments on commit c5e21d5

Please sign in to comment.