Disabled AI behavior switch to toggle AIM_CHASE_OBJECT if in AIB_STILL during a hit, fixing unwanted boss movements and hopefully not breaking anything else

This commit is contained in:
zico 2016-05-10 14:04:30 +02:00
parent 7692d19e2b
commit 1e60e7f31a

View file

@ -1554,7 +1554,7 @@ void do_ai_robot_hit(const vobjptridx_t objp, player_awareness_type_t type)
objp->ctype.ai_info.SUBMODE = AISM_GOHIDE;
break;
case ai_behavior::AIB_STILL:
objp->ctype.ai_info.ail.mode = ai_mode::AIM_CHASE_OBJECT;
// objp->ctype.ai_info.ail.mode = ai_mode::AIM_CHASE_OBJECT; // NOTE: Should be triggered but causes unwanted movements with bosses. I leave this here for future reference.
break;
case ai_behavior::AIB_FOLLOW_PATH:
#elif defined(DXX_BUILD_DESCENT_II)