From 92a113ddfa4b9d889d588a7abbd53c52eec84d2d Mon Sep 17 00:00:00 2001 From: SoftCoder Date: Sun, 21 Dec 2014 20:27:21 -0800 Subject: [PATCH] - missed a few places where we should use total upgrade sight --- source/glest_game/world/unit_updater.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/glest_game/world/unit_updater.cpp b/source/glest_game/world/unit_updater.cpp index 63a22120..8e449800 100644 --- a/source/glest_game/world/unit_updater.cpp +++ b/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 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());