This commit is contained in:
parent
4dbd7f53b8
commit
8f11f279fb
1 changed files with 2 additions and 2 deletions
|
@ -371,13 +371,13 @@ void CPlayerModeJellyLauncher::launchProjectile()
|
||||||
launchPos=getPlayerPos();
|
launchPos=getPlayerPos();
|
||||||
launchPos.vx+=playerFacing*jellyLaunchPos.vx;
|
launchPos.vx+=playerFacing*jellyLaunchPos.vx;
|
||||||
launchPos.vy+=jellyLaunchPos.vy;
|
launchPos.vy+=jellyLaunchPos.vy;
|
||||||
if(m_firingTime==TIMEOUT_FOR_BIG_SHOT&&m_player->getJellyAmmo()>=AMMO_AMOUNT_FOR_BIG_SHOT)
|
if(m_firingTime==TIMEOUT_FOR_BIG_SHOT&&m_player->getJellyAmmo()>1)
|
||||||
{
|
{
|
||||||
// Powered up, big shot
|
// Powered up, big shot
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
fireHeading=1024+(1024*playerFacing)-POWER_UP_SHOT_ANGLE;
|
fireHeading=1024+(1024*playerFacing)-POWER_UP_SHOT_ANGLE;
|
||||||
for(i=0;i<3;i++)
|
for(i=0;i<3&&m_player->getJellyAmmo();i++)
|
||||||
{
|
{
|
||||||
projectile=CPlayerProjectile::Create();
|
projectile=CPlayerProjectile::Create();
|
||||||
projectile->init(launchPos,
|
projectile->init(launchPos,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue