~ubuntu-branches/ubuntu/karmic/wesnoth-1.8/karmic-backports

« back to all changes in this revision

Viewing changes to src/ai/default/move.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Ubuntu Archive Backport
  • Date: 2010-11-01 12:37:12 UTC
  • mfrom: (2.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20101101123712-4x9k931r5bsdjp3z
Tags: 1:1.8.5-1~karmic1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: move.cpp 41353 2010-02-22 20:08:38Z boucman $ */
 
1
/* $Id: move.cpp 44034 2010-07-09 09:05:49Z ivanovic $ */
2
2
/*
3
3
   Copyright (C) 2003 - 2010 by David White <dave@whitevine.net>
4
4
   Part of the Battle for Wesnoth Project http://www.wesnoth.org/
477
477
                        raise_user_interact();
478
478
 
479
479
                        const move_cost_calculator calc(u->second, map_, units_, enemy_dstsrc);
480
 
                        const double locStopValue = std::min(best_target->value / best_rating, 100.0);
 
480
                        const double locStopValue = std::min(best_target->value / best_rating, (double) 100.0);
481
481
                        pathfind::plain_route cur_route = a_star_search(u->first, best_target->loc, locStopValue, &calc, map_.w(), map_.h());
482
482
 
483
483
                        if(cur_route.steps.empty()) {