mirror of
https://github.com/glest/glest-source.git
synced 2025-09-01 20:12:40 +02:00
Removed unused variable
This commit is contained in:
@@ -3169,7 +3169,6 @@ namespace Game {
|
|||||||
|
|
||||||
bool UnitUpdater::hasEnemyUnitsOnSight(const Unit *unit, bool limitByAttackRange) {
|
bool UnitUpdater::hasEnemyUnitsOnSight(const Unit *unit, bool limitByAttackRange) {
|
||||||
vector<Unit*> enemies;
|
vector<Unit*> enemies;
|
||||||
float distToUnit = -1;
|
|
||||||
for (int i = 0; i < unit->getType()->getSkillTypeCount(); ++i) {
|
for (int i = 0; i < unit->getType()->getSkillTypeCount(); ++i) {
|
||||||
const SkillType *st = unit->getType()->getSkillType(i);
|
const SkillType *st = unit->getType()->getSkillType(i);
|
||||||
const AttackSkillType *ast = dynamic_cast<const AttackSkillType *>(st);
|
const AttackSkillType *ast = dynamic_cast<const AttackSkillType *>(st);
|
||||||
|
Reference in New Issue
Block a user