This commit is contained in:
Paul 2001-07-04 20:01:43 +00:00
parent 4cefba60e7
commit 36572baaac
3 changed files with 80 additions and 57 deletions

View file

@ -617,10 +617,13 @@ void CGameScene::think_playing(int _frames)
} }
if(!m_pauseMenu->isActive()&&PadGetDown(0)&PAD_START&&canPause()) if(canPause()&&!m_pauseMenu->isActive())
{
if(PadGetDown(0)&PAD_START||!PadIsConnected(0))
{ {
m_pauseMenu->select(); m_pauseMenu->select();
} }
}
// Conversation think ( with pad debounce stuff.. ) // Conversation think ( with pad debounce stuff.. )
if(CConversation::isActive())m_player->ignoreNewlyPressedButtonsOnPadThisThink(); if(CConversation::isActive())m_player->ignoreNewlyPressedButtonsOnPadThisThink();

View file

@ -60,6 +60,9 @@ public:
protected: protected:
virtual int getWeaponSpriteFrame(); virtual int getWeaponSpriteFrame();
private:
virtual CSoundMediator::SFXID sfxToPlayWhenCollected(){return CSoundMediator::SFX_JELLY_LAUNCHER;}
}; };

View file

@ -54,12 +54,24 @@
Vars Vars
---- */ ---- */
#ifdef __VERSION_DEBUG__
#define _SOUNDDEBUG
#endif
#ifdef _SOUNDDEBUG
#include "pad\pads.h"
#ifdef __USER_paul__ #ifdef __USER_paul__
static int sounddebug=true; static int sounddebug=true;
#else #else
static int sounddebug=false; static int sounddebug=false;
#endif #endif
#endif /* SFX_JELLY_LAUNCHER */
/*---------------------------------------------------------------------- /*----------------------------------------------------------------------
Function: Function:
@ -222,6 +234,11 @@ void CXMPlaySound::think()
////////////// //////////////
#ifdef _SOUNDDEBUG
if(PadGetDown(1)&PAD_L1&&PadGetHeld(1)&(PAD_L2|PAD_R1|PAD_R2))
{
sounddebug=!sounddebug;
}
if(sounddebug) if(sounddebug)
{ {
static const int colours[6][3]= static const int colours[6][3]=
@ -286,8 +303,8 @@ if(!free)
setRGB0(f4,255,0,0); setRGB0(f4,255,0,0);
AddPrimToList(f4,0); AddPrimToList(f4,0);
} }
} }
#endif /* _SOUNDDEBUG */
////////////// //////////////
} }