From 9f1abc52a0afbe798e47d9102839f4d7c7b3968b Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 18 Jun 2001 21:07:57 +0000 Subject: [PATCH] --- source/player/psjmpbck.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/player/psjmpbck.cpp b/source/player/psjmpbck.cpp index df756cff0..435851ab3 100644 --- a/source/player/psjmpbck.cpp +++ b/source/player/psjmpbck.cpp @@ -71,11 +71,14 @@ CPlayerStateJumpBack s_stateJumpBack; void CPlayerStateJumpBack::enter(CPlayerModeBase *_playerMode) { _playerMode->setAnimNo(ANIM_SPONGEBOB_GETHIT); - m_reactFrames=0; + if(_playerMode->getState()!=STATE_JUMPBACK) + { + m_reactFrames=0; + CSoundMediator::playSfx(CSoundMediator::SFX_SPONGEBOB_JUMP); + } _playerMode->jumpback(); - CSoundMediator::playSfx(CSoundMediator::SFX_SPONGEBOB_JUMP); }