mirror of
https://github.com/glest/glest-source.git
synced 2025-08-30 19:29:47 +02:00
Changes from 2367 without formatting mess
This commit is contained in:
@@ -599,10 +599,9 @@ void UnitUpdater::unitBeingAttacked(std::pair<bool,Unit *> &result, const Unit *
|
||||
|
||||
if(distToUnit < 0 || unit->getCenteredPos().dist(enemy->getCenteredPos()) < distToUnit) {
|
||||
distToUnit = unit->getCenteredPos().dist(enemy->getCenteredPos());
|
||||
result.first = true;
|
||||
result.second = enemy;
|
||||
if( ast->getAttackRange()>=distToUnit)
|
||||
{
|
||||
if(ast->getAttackRange() >= distToUnit){
|
||||
result.first= true;
|
||||
result.second= enemy;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user