Browse Source

Remove default parameter

Ivan Savenko 2 years ago
parent
commit
46200b133f
3 changed files with 3 additions and 3 deletions
  1. 1 1
      client/CMT.cpp
  2. 1 1
      client/CPlayerInterface.cpp
  3. 1 1
      client/CPlayerInterface.h

+ 1 - 1
client/CMT.cpp

@@ -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);

+ 1 - 1
client/CPlayerInterface.cpp

@@ -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);
 

+ 1 - 1
client/CPlayerInterface.h

@@ -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();