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:
parent
45e2875342
commit
46200b133f
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user