revert code formatting mess to same as revision 2366. Change from 2367 will come without this mess with next checkin
This commit is contained in:
parent
1ea57853c5
commit
59136a3d95
|
@ -599,10 +599,10 @@ void UnitUpdater::unitBeingAttacked(std::pair<bool,Unit *> &result, const Unit *
|
||||||
|
|
||||||
if(distToUnit < 0 || unit->getCenteredPos().dist(enemy->getCenteredPos()) < distToUnit) {
|
if(distToUnit < 0 || unit->getCenteredPos().dist(enemy->getCenteredPos()) < distToUnit) {
|
||||||
distToUnit = unit->getCenteredPos().dist(enemy->getCenteredPos());
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue