Commit fa577110 authored by Gerhard Stein's avatar Gerhard Stein

Sound fixes

parent f532bab3
......@@ -48,7 +48,7 @@ mp_processState(NULL)
void CPlayerBase::getAnotherLife(const int &lc_x, const int &lc_y)
void CPlayerBase::getAnotherLife(const int lc_x, const int lc_y, const bool display)
{
m_Inventory.Item.m_lifes++;
g_pSound->playSound( SOUND_EXTRA_LIFE );
......@@ -163,7 +163,7 @@ void CPlayerBase::processLevelMiscFlagsCheck()
if(m_Item.m_drops >= 100)
{
m_Item.m_drops = 0;
getAnotherLife(lc_x, lc_y);
getAnotherLife(lc_x, lc_y, false);
}
g_pSound->playSound( SOUND_GET_DROP );
......@@ -188,14 +188,14 @@ void CPlayerBase::processLevelMiscFlagsCheck()
case 24: m_Item.m_points += 1000; g_pSound->playSound( SOUND_GET_BONUS ); break;
case 25: m_Item.m_points += 2000; g_pSound->playSound( SOUND_GET_BONUS ); break;
case 26: m_Item.m_points += 5000; g_pSound->playSound( SOUND_GET_BONUS ); break;
case 27: getAnotherLife(lc_x, lc_y); break;
case 27: getAnotherLife(lc_x, lc_y, true); break;
case 28: m_Item.m_bullets += 5; g_pSound->playSound( SOUND_GET_AMMO ); break;
default: break;
}
if(m_Item.m_points >= m_Item.m_lifeAt)
{
getAnotherLife(lc_x, lc_y);
getAnotherLife(lc_x, lc_y, false);
m_Item.m_lifeAt *= 2;
}
......
......@@ -52,7 +52,7 @@ public:
/**
* \brief The Player will get 1 UP when that function is launched
*/
void getAnotherLife(const int &lc_x, const int &lc_y);
void getAnotherLife(const int lc_x, const int lc_y, const bool display);
/**
* \description Read the Input of the Player and sets the variables accordingly
......
......@@ -717,7 +717,7 @@ void CPlayerLevel::processPogoCommon()
}
else
{
//TODO: sounds
playSound( SOUND_KEEN_BUMPHEAD );
if (blockedu > 1)
{
yinertia += 16;
......@@ -728,7 +728,6 @@ void CPlayerLevel::processPogoCommon()
{
if( yinertia < 0 )
{
// TODO: Play bong Sound.
yinertia = 0;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment