This commit is contained in:
Daveo 2001-07-13 19:55:22 +00:00
parent 941d0074a2
commit 2a0c8b112f
3 changed files with 3 additions and 5 deletions

View File

@ -79,7 +79,7 @@ CFXBaseAnim::sFXBaseData FXFireBaseData=
CFXBaseAnim::sFXBaseData FXBubbleBaseData=
{
FRM__BUBBLE_2,FRM__BUBBLE_2,1,
FX_FLAG_LOOP | FX_FLAG_COLLIDE_KILL | FX_FLAG_NO_THINK_KILL | FX_FLAG_HAS_LIFE,
FX_FLAG_LOOP | FX_FLAG_COLLIDE_KILL | FX_FLAG_NO_THINK_KILL,
0,0,
};

View File

@ -23,7 +23,6 @@ void CFXBubble::init(DVECTOR const &_Pos)
Velocity.vy=-(getRndRange(4)+1);
CurrentScaleX=CurrentScaleY=getRndRange(ONE/2)+(ONE/2);
XIdx=getRnd()&15;
}
/*****************************************************************************/
@ -33,16 +32,16 @@ static const s16 XT[16]={ 0,+1,+0,+1,+0, 0,-1,+0,-1,+0,0,+1,+0,+1,+0,};
void CFXBubble::think(int _frames)
{
Life-=_frames;
if (Life<=0)
{
if (renderFrame!=FRM__BUBBLEPOP)
{
// CSoundMediator::playSfx(CSoundMediator::SFX_BALLOON_POP,false);
renderFrame=FRM__BUBBLEPOP;
}
else
{
setToShutdown();
killFX();
}
}
else

View File

@ -13,7 +13,6 @@ class CFXBubble : public CFXBaseAnim
public:
void init(DVECTOR const &Pos);
void think(int _frames);
void killFX(){};
protected:
u16 XIdx;