This commit is contained in:
Charles 2001-05-10 19:57:18 +00:00
parent a0b2221837
commit 1963029065
2 changed files with 7 additions and 3 deletions

View File

@ -141,7 +141,7 @@ void CNpcAnemone1Enemy::processClose( int _frames )
if ( decDir < incDir ) if ( decDir < incDir )
{ {
moveDist = decDir; moveDist = -decDir;
} }
else else
{ {
@ -165,6 +165,8 @@ void CNpcAnemone1Enemy::processClose( int _frames )
m_heading &= 4095; m_heading &= 4095;
m_drawRotation = m_heading + 1024;
if ( withinRange ) if ( withinRange )
{ {
// can fire, start firing anim // can fire, start firing anim
@ -496,6 +498,8 @@ void CNpcAnemone3Enemy::processClose( int _frames )
CProjectile *projectile; CProjectile *projectile;
u8 lifetime = 8; u8 lifetime = 8;
m_fireHeading = m_heading & 4095;
projectile = new( "test projectile" ) CProjectile; projectile = new( "test projectile" ) CProjectile;
projectile->init( Pos, projectile->init( Pos,
m_fireHeading, m_fireHeading,

View File

@ -192,7 +192,7 @@ CNpcEnemy::NPC_DATA CNpcEnemy::m_data[NPC_UNIT_TYPE_MAX] =
NPC_TIMER_NONE, NPC_TIMER_NONE,
false, false,
0, 0,
128, 16,
DETECT_NO_COLLISION, DETECT_NO_COLLISION,
DAMAGE__NONE, DAMAGE__NONE,
16, 16,
@ -238,7 +238,7 @@ CNpcEnemy::NPC_DATA CNpcEnemy::m_data[NPC_UNIT_TYPE_MAX] =
NPC_TIMER_NONE, NPC_TIMER_NONE,
false, false,
0, 0,
128, 16,
DETECT_NO_COLLISION, DETECT_NO_COLLISION,
DAMAGE__NONE, DAMAGE__NONE,
48, 48,