mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +00:00
Fix a bug where a monster could be stuck after dropping aggro while rooted
This commit is contained in:
parent
487a6eacfa
commit
82dcde8aa6
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue