- missed a few places where we should use total upgrade sight

This commit is contained in:
SoftCoder 2014-12-21 20:27:21 -08:00
parent e65ad1b69c
commit 92a113ddfa
1 changed files with 2 additions and 2 deletions

View File

@ -2755,7 +2755,7 @@ bool UnitUpdater::searchForResource(Unit *unit, const HarvestCommandType *hct) {
}
bool UnitUpdater::attackerOnSight(Unit *unit, Unit **rangedPtr, bool evalMode){
int range= unit->getType()->getSight();
int range = unit->getType()->getTotalSight(unit->getTotalUpgrade());
return unitOnRange(unit, range, rangedPtr, NULL,evalMode);
}
@ -3089,7 +3089,7 @@ vector<Unit*> UnitUpdater::enemyUnitsOnRange(const Unit *unit,const AttackSkillT
try {
int range = unit->getType()->getSight();
int range = unit->getType()->getTotalSight(unit->getTotalUpgrade());
if(ast != NULL) {
range = ast->getTotalAttackRange(unit->getTotalUpgrade());