Skip to content
Permalink
Browse files
- missed a few places where we should use total upgrade sight
  • Loading branch information
softcoder committed Dec 22, 2014
1 parent e65ad1b commit 92a113ddfa4b9d889d588a7abbd53c52eec84d2d
Showing with 2 additions and 2 deletions.
  1. +2 −2 source/glest_game/world/unit_updater.cpp
@@ -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());

0 comments on commit 92a113d

Please sign in to comment.