From be36e213f86dd1c27618b751ede25b2e89df6757 Mon Sep 17 00:00:00 2001 From: Treeki Date: Wed, 25 Jul 2012 23:54:17 +0200 Subject: new point sounds --- src/koopatlas/pathmanager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/koopatlas/pathmanager.cpp b/src/koopatlas/pathmanager.cpp index 5f38043..3b592d2 100644 --- a/src/koopatlas/pathmanager.cpp +++ b/src/koopatlas/pathmanager.cpp @@ -241,8 +241,10 @@ void dWMPathManager_c::execute() { // handle path fading if (countdownToFadeIn > 0) { countdownToFadeIn--; - if (countdownToFadeIn <= 0) + if (countdownToFadeIn <= 0) { unlockingAlpha = 0; + MapSoundPlayer(SoundRelatedClass, SE_SYS_NEW_POINT, 1); + } } if (unlockingAlpha != -1) { @@ -265,6 +267,7 @@ void dWMPathManager_c::execute() { if (unlockingAlpha == 255) { // we've reached the end unlockingAlpha = -1; + MapSoundPlayer(SoundRelatedClass, SE_SYS_NEW_POINT_END, 1); } } } -- cgit v1.2.3