1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-13 01:20:34 +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; break;
case EUserEvent::INTERFACE_CHANGED: case EUserEvent::INTERFACE_CHANGED:
if(LOCPLINT) if(LOCPLINT)
LOCPLINT->updateAmbientSounds(); LOCPLINT->updateAmbientSounds(false);
break; break;
default: default:
logGlobal->error("Unknown user event. Code %d", ev.user.code); 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 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 //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); CCS->musich->playMusicFromSet("terrain", LOCPLINT->cb->getTile(hero->visitablePos())->terType->getJsonKey(), true, false);

View File

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