Changes from 2367 without formatting mess

This commit is contained in:
Titus Tscharntke
2011-06-23 23:30:49 +00:00
parent 59136a3d95
commit 149e5b15b0

View File

@@ -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;
}
}