mirror of
https://github.com/glest/glest-source.git
synced 2025-09-01 12:02:36 +02:00
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:
@@ -599,10 +599,10 @@ 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)
|
||||
{
|
||||
result.first = true;
|
||||
result.second = enemy;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user