Skip to content

Commit

Permalink
Fix active panning flag not correctly checked in sound manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolfering committed Jun 17, 2023
1 parent 3552489 commit f88d2a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source_Files/Sound/SoundManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ std::shared_ptr<AudioPlayer> SoundManager::PlaySound(short sound_index,
if (source) {

parameters.source_location3d = *source;
parameters.dynamic_source_location3d = _dynamic_tracking_flag && identifier != NONE ? source : nullptr;
parameters.dynamic_source_location3d = (this->parameters.flags & _dynamic_tracking_flag) && identifier != NONE ? source : nullptr;

if (this->parameters.flags & _3d_sounds_flag) {
parameters.obstruction_flags = GetSoundObstructionFlags(sound_index, source);
Expand Down

0 comments on commit f88d2a1

Please sign in to comment.