Commit b0730150 authored by gerstrong@gmail.com's avatar gerstrong@gmail.com

Wormouth AI improvements

parent d02ac9ec
......@@ -17,7 +17,7 @@ const int A_WORMMOUTH_LOOK = 1;
const int A_WORMMOUTH_EAT = 9;
const int A_WORMMOUTH_STUNNED = 14;
const int DIST_TO_EAT_X = (2<<CSF);
const int DIST_TO_EAT_X = (8<<STC);
const int DIST_TO_EAT_Y = 2<<CSF;
const int LOOK_TIMER = 10;
......@@ -110,10 +110,8 @@ void CWormmouth::getTouchedBy(CSpriteObject &theObject)
if(mIsDead || theObject.mIsDead )
return;
CStunnable::getTouchedBy(theObject);
// Was it a bullet? Than make it stunned.
if( dynamic_cast<CBullet*>(&theObject) )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment