This commit is contained in:
Charles 2001-08-03 15:22:33 +00:00
parent 10a01720c7
commit 8259aac172

View File

@ -1251,6 +1251,8 @@ void CNpcSeaSnakeEnemy::collidedWith( CThing *_thisThing )
switch(_thisThing->getThingType())
{
case TYPE_PLAYER:
{
if ( m_invulnerableTimer <= 0 )
{
CPlayer *player = (CPlayer *) _thisThing;
@ -1292,7 +1294,7 @@ void CNpcSeaSnakeEnemy::collidedWith( CThing *_thisThing )
}
}
}
else if ( m_invulnerableTimer <= 0 )
else
{
// player is attacking, respond appropriately
@ -1308,6 +1310,7 @@ void CNpcSeaSnakeEnemy::collidedWith( CThing *_thisThing )
drawAttackEffect();
}
}
}
break;
}