mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-08-09 23:59:51 +00:00
Add EV_NOAVOID and bone_lookAtPosition()
This commit is contained in:
parent
4433237f3a
commit
ab6e92f256
3 changed files with 15 additions and 2 deletions
|
@ -2788,7 +2788,7 @@ void Entity::doEntityAvoidance(float dt, int range, float mod, Entity *ignore)
|
|||
{
|
||||
Entity *e = *i;
|
||||
|
||||
if (e != this && e != ignore && e->ridingOnEntity != this)
|
||||
if (e != this && e != ignore && e->ridingOnEntity != this && !e->getv(EV_NOAVOID))
|
||||
{
|
||||
diff = (this->position - e->position);
|
||||
if (diff.isLength2DIn(range) && !diff.isZero())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue