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:
@ -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);
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
Reference in New Issue
Block a user