diff --git a/source/glest_game/world/map.cpp b/source/glest_game/world/map.cpp index 4ac05969..d9d1d5f7 100644 --- a/source/glest_game/world/map.cpp +++ b/source/glest_game/world/map.cpp @@ -983,7 +983,7 @@ Vec2i Map::findBestBuildApproach(const Unit *unit, Vec2i originalBuildPos,const float bestRange = -1; - Vec2i start = pos - Vec2i(ut->getSize()); + Vec2i start = pos - Vec2i(unit->getType()->getSize()); Vec2i end = pos + Vec2i(ut->getSize()); for(int i = start.x; i <= end.x; ++i) { diff --git a/source/glest_game/world/unit_updater.cpp b/source/glest_game/world/unit_updater.cpp index c29c538a..e54f5097 100644 --- a/source/glest_game/world/unit_updater.cpp +++ b/source/glest_game/world/unit_updater.cpp @@ -482,7 +482,9 @@ void UnitUpdater::updateAttack(Unit *unit, int frameIndex) { } else { //if unit arrives destPos order has ended - switch (tsValue){ + switch (tsValue) { + +/* case tsMoving: unit->setCurrSkill(act->getMoveSkillType()); @@ -512,6 +514,7 @@ void UnitUpdater::updateAttack(Unit *unit, int frameIndex) { } break; +*/ case tsBlocked: if(unit->getPath()->isBlocked()){ unit->finishCommand();