This commit is contained in:
Paul 2001-08-16 20:07:24 +00:00
parent 527093fc9a
commit 9dc97284a2

View File

@ -1962,6 +1962,7 @@ void CPlayer::calcCameraFocusPointTarget()
---------------------------------------------------------------------- */ ---------------------------------------------------------------------- */
void CPlayer::respawn() void CPlayer::respawn()
{ {
// Set previous mode
setMode(m_lastModeBeforeDeath); setMode(m_lastModeBeforeDeath);
m_allowConversation=false; m_allowConversation=false;
@ -2003,6 +2004,16 @@ void CPlayer::respawn()
m_pantFlashTimer=0; m_pantFlashTimer=0;
m_hasReceivedExtraLifeFor100Spats=false; m_hasReceivedExtraLifeFor100Spats=false;
// Re-stock ammo if need be
if(m_currentMode==PLAYER_MODE_BUBBLE_MIXTURE)
{
giveBubbleAmmoFromWeapon();
}
else if(m_currentMode==PLAYER_MODE_JELLY_LAUNCHER)
{
giveJellyAmmoFromWeapon();
}
m_moveVelocity.vx=m_moveVelocity.vy=0; m_moveVelocity.vx=m_moveVelocity.vy=0;
clearPlatform(); clearPlatform();