Skip to content

Commit

Permalink
Don't reset mixer on each focus update (#3771)
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-derevenetz authored Jun 29, 2021
1 parent 036877d commit d0efeea
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/fheroes2/gui/interface_focus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ void Interface::Basic::SetFocus( Heroes * hero )

const int heroIndexPos = hero->GetIndex();
if ( Game::UpdateSoundsOnFocusUpdate() && heroIndexPos >= 0 ) {
AGG::ResetMixer();
Game::EnvironmentSoundMixer();
AGG::PlayMusic( MUS::FromGround( world.GetTiles( heroIndexPos ).GetGround() ), true, true );
}
Expand Down Expand Up @@ -84,7 +83,6 @@ void Interface::Basic::SetFocus( Castle * castle )
statusWindow.SetState( StatusType::STATUS_FUNDS );

if ( Game::UpdateSoundsOnFocusUpdate() ) {
AGG::ResetMixer();
Game::EnvironmentSoundMixer();
AGG::PlayMusic( MUS::FromGround( world.GetTiles( castle->GetIndex() ).GetGround() ), true, true );
}
Expand Down

0 comments on commit d0efeea

Please sign in to comment.