1
0
Fork 0
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:
fgenesis 2013-02-06 21:01:22 +01:00
parent 4433237f3a
commit ab6e92f256
3 changed files with 15 additions and 2 deletions

View file

@ -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())