Fix a bug where a monster could be stuck after dropping aggro while rooted

--HG--
branch : fix_freezing
This commit is contained in:
Guillaume Dupuy 2016-12-17 02:47:05 +01:00
parent 81008cd9ff
commit fb280101f1

View file

@ -1070,6 +1070,7 @@ void CMovementMagnet::update(uint32 waitTime, uint32 ticksSinceLastUpdate, bool
float distToDest=(float)_PathCont.getDestination().quickDistTo(_BotFauna.pos()); float distToDest=(float)_PathCont.getDestination().quickDistTo(_BotFauna.pos());
distToDest-=((_BotFauna.getPersistent().getChildIndex()&7)+1.5f); distToDest-=((_BotFauna.getPersistent().getChildIndex()&7)+1.5f);
_Speed=_BotFauna.walkSpeed();
float dist=_Speed*ticksSinceLastUpdate; float dist=_Speed*ticksSinceLastUpdate;
CAIVector lastPos=_BotFauna.pos(); CAIVector lastPos=_BotFauna.pos();
{ {