This commit is contained in:
Paul 2001-04-25 19:18:28 +00:00
parent 4cbe1ef5dd
commit 4d5777fee4

View File

@ -305,6 +305,7 @@ void CPlayer::shutdown()
Params:
Returns:
---------------------------------------------------------------------- */
static int oldmode=-1;
int newmode=-1;
#ifdef _STATE_DEBUG_
@ -315,6 +316,18 @@ void CPlayer::think(int _frames)
int i;
if(PadGetDown(0)&PAD_L1)
{
oldmode=m_currentMode;
newmode=PLAYER_MODE_FLY;
}
else if(oldmode!=-1&&!(PadGetHeld(0)&PAD_L1))
{
newmode=oldmode;
oldmode=-1;
}
if(PadGetHeld(0)&PAD_L1&&PadGetHeld(0)&PAD_L2)
{
respawn();