mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 19:52:25 +01:00
enemy targeting changed a bit again
This commit is contained in:
parent
c99fb68f5b
commit
4719686440
@ -561,6 +561,10 @@ void UnitUpdater::unitBeingAttacked(std::pair<bool,Unit *> &result, const Unit *
|
||||
distToUnit = unit->getCenteredPos().dist(enemy->getCenteredPos());
|
||||
result.first = true;
|
||||
result.second = enemy;
|
||||
if( ast->getAttackRange()>=distToUnit)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user