From a1ca2b30e4f05037d2a0d60b821e2f8699ab8891 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 10 Nov 2012 17:15:51 +0100 Subject: pushed the very unfinished 4P --- src/koopatlas/pathmanager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/koopatlas/pathmanager.cpp') diff --git a/src/koopatlas/pathmanager.cpp b/src/koopatlas/pathmanager.cpp index 5053fb8..155e27c 100644 --- a/src/koopatlas/pathmanager.cpp +++ b/src/koopatlas/pathmanager.cpp @@ -588,11 +588,15 @@ void dWMPathManager_c::startMovementTo(dKPPath_s *path) { player->hasSound = false; } - if (Animations[id].initialEffect) + if (Animations[id].initialEffect) { SpawnEffect(Animations[id].initialEffect, 0, &player->pos, 0, &player->scale); + daWMPlayer_c::instance->nextNowEffect = Animations[id].initialEffect; + } + if (Animations[id].initialSound != SE_NULL) { nw4r::snd::SoundHandle something; PlaySoundWithFunctionB4(SoundRelatedClass, &something, Animations[id].initialSound, 1); + daWMPlayer_c::instance->nextNowSound = Animations[id].initialSound; if (Animations[id].initialSound == SE_PLY_JUMP) { nw4r::snd::SoundHandle something2; -- cgit v1.2.3