diff --git a/source/glest_game/game/game.cpp b/source/glest_game/game/game.cpp index 1a52df89..4af4ef59 100644 --- a/source/glest_game/game/game.cpp +++ b/source/glest_game/game/game.cpp @@ -1684,6 +1684,9 @@ void Game::addOrReplaceInHighlightedCells(MarkedCell mc){ } mc.setAliveCount(200); highlightedCells.push_back(mc); + CoreData &coreData= CoreData::getInstance(); + SoundRenderer &soundRenderer= SoundRenderer::getInstance(); + soundRenderer.playFx(coreData.getMarkerSound()); } void Game::ReplaceDisconnectedNetworkPlayersWithAI(bool isNetworkGame, NetworkRole role) { diff --git a/source/glest_game/global/core_data.cpp b/source/glest_game/global/core_data.cpp index 8521c972..a57d3e07 100644 --- a/source/glest_game/global/core_data.cpp +++ b/source/glest_game/global/core_data.cpp @@ -365,6 +365,7 @@ void CoreData::load() { clickSoundC.load(getGameCustomCoreDataPath(data_path, "data/core/menu/sound/click_c.wav")); attentionSound.load(getGameCustomCoreDataPath(data_path, "data/core/menu/sound/attention.wav")); highlightSound.load(getGameCustomCoreDataPath(data_path, "data/core/menu/sound/highlight.wav")); + markerSound.load(getGameCustomCoreDataPath(data_path, "data/core/menu/sound/sonar.wav")); XmlTree xmlTree; //string data_path = getGameReadWritePath(GameConstants::path_data_CacheLookupKey); diff --git a/source/glest_game/global/core_data.h b/source/glest_game/global/core_data.h index 748937e6..4d21249f 100644 --- a/source/glest_game/global/core_data.h +++ b/source/glest_game/global/core_data.h @@ -50,6 +50,7 @@ private: StaticSound clickSoundC; StaticSound attentionSound; StaticSound highlightSound; + StaticSound markerSound; SoundContainer waterSounds; Texture2D *logoTexture; @@ -163,6 +164,7 @@ public: StaticSound *getClickSoundC() {return &clickSoundC;} StaticSound *getAttentionSound() {return &attentionSound;} StaticSound *getHighlightSound() {return &highlightSound;} + StaticSound *getMarkerSound() {return &markerSound;} StaticSound *getWaterSound() {return waterSounds.getRandSound();} Font2D *getDisplayFont() const {return displayFont;}