1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Remove default parameter

This commit is contained in:
Ivan Savenko 2023-02-24 13:16:09 +02:00
parent 45e2875342
commit 46200b133f
3 changed files with 3 additions and 3 deletions

View File

@ -1002,7 +1002,7 @@ static void handleEvent(SDL_Event & ev)
break;
case EUserEvent::INTERFACE_CHANGED:
if(LOCPLINT)
LOCPLINT->updateAmbientSounds();
LOCPLINT->updateAmbientSounds(false);
break;
default:
logGlobal->error("Unknown user event. Code %d", ev.user.code);

View File

@ -335,7 +335,7 @@ void CPlayerInterface::heroMoved(const TryMoveHero & details, bool verbose)
if(makingTurn && hero->tempOwner == playerID) //we are moving our hero - we may need to update assigned path
{
updateAmbientSounds();
updateAmbientSounds(false);
//We may need to change music - select new track, music handler will change it if needed
CCS->musich->playMusicFromSet("terrain", LOCPLINT->cb->getTile(hero->visitablePos())->terType->getJsonKey(), true, false);

View File

@ -264,7 +264,7 @@ public:
void proposeLoadingGame();
// Ambient sounds
void updateAmbientSounds(bool resetAll = false);
void updateAmbientSounds(bool resetAll);
///returns true if all events are processed internally
bool capturedAllEvents();