This commit is contained in:
Paul 2001-06-11 15:27:05 +00:00
parent 898cecc036
commit dd94063c01
3 changed files with 22 additions and 2 deletions

View file

@ -741,7 +741,8 @@ if(newmode!=-1)
#ifdef __USER_paul__
if(PadGetDown(0)&PAD_TRIANGLE)
{
springPlayerUp();
CLevel &level=GameScene.GetLevel();
level.destroyMapTile(Pos);
}
#endif
///
@ -1356,6 +1357,24 @@ if(drawlastpos)
}
/*----------------------------------------------------------------------
Function:
Purpose: Like the normal setRespawnPos() but plays the telephone ring sound if
this is not the current respawn point. To be used from the respawn triggers
so that they make the ring sound
Params:
Returns:
---------------------------------------------------------------------- */
void CPlayer::setRespawnPosAndRingTelephone(DVECTOR _respawn)
{
if(m_respawnPos.vx!=_respawn.vx&&
m_respawnPos.vy!=_respawn.vy)
{
CSoundMediator::playSfx(CSoundMediator::SFX_TELEPHONE_BOX);
setRespawnPos(_respawn);
}
}
/*----------------------------------------------------------------------
Function:
Purpose: