From 196962c1b1e6950be98ea07f4fbf6350da95ddaa Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 18 Jul 2001 16:36:55 +0000 Subject: [PATCH] --- source/player/pmcoral.cpp | 2 +- source/projectl/projectl.cpp | 6 +++++- source/projectl/projectl.h | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/source/player/pmcoral.cpp b/source/player/pmcoral.cpp index 512d27877..aa1454b38 100644 --- a/source/player/pmcoral.cpp +++ b/source/player/pmcoral.cpp @@ -297,7 +297,7 @@ void CPlayerModeCoralBlower::think() projectile = CEnemyAsSpriteProjectile::Create(); projectile->init( launchPos, launchHeading,//1024+(1024*facing), - CPlayerProjectile::PLAYER_PROJECTILE_DUMBFIRE, + CPlayerProjectile::PLAYER_PROJECTILE_DUMBFIRE_CORAL, CPlayerProjectile::PLAYER_PROJECTILE_FINITE_LIFE, 5*60); diff --git a/source/projectl/projectl.cpp b/source/projectl/projectl.cpp index 320a1758e..7865847d9 100644 --- a/source/projectl/projectl.cpp +++ b/source/projectl/projectl.cpp @@ -692,6 +692,7 @@ void CPlayerProjectile::think(int _frames) } case PLAYER_PROJECTILE_DUMBFIRE: + case PLAYER_PROJECTILE_DUMBFIRE_CORAL: default: { if ( CGameScene::getCollision()->Get( Pos.vx >> 4, Pos.vy >> 4 ) ) @@ -700,7 +701,10 @@ void CPlayerProjectile::think(int _frames) CLevel &level = GameScene.GetLevel(); - level.destroyMapArea( Pos ); + if ( m_movementType == PLAYER_PROJECTILE_DUMBFIRE_CORAL ) + { + level.destroyMapArea( Pos ); + } setToShutdown(); } diff --git a/source/projectl/projectl.h b/source/projectl/projectl.h index f381bd64e..71025fed4 100644 --- a/source/projectl/projectl.h +++ b/source/projectl/projectl.h @@ -101,6 +101,7 @@ public: { PLAYER_PROJECTILE_DUMBFIRE = 0, PLAYER_PROJECTILE_BOUNCING = 1, + PLAYER_PROJECTILE_DUMBFIRE_CORAL, }; enum PLAYER_PROJECTILE_LIFETIME_TYPE