URL:
  <http://gna.org/patch/?3897>

                 Summary: Respect slow_invasions in pathfinding
                 Project: Freeciv
            Submitted by: persia
            Submitted on: Mon 06 May 2013 06:14:50 PM JST
                Category: ai
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 

    _______________________________________________________

Details:

    Improved slow_invasions handling for pathfinding extracted from prior
revision of patch #3886 (upon which this depends - not functionally, but
syntactially (the indentation and placement of the FC_INFINITY handling
changed in that patch)).

    This implementation is far simpler and contains conditional logic to
prevent the prior reported hang (moves_left%move_rate may be 0, which isn't a
good value to use for cost, unless provided by map_move_cost()).

    Also included is another conditional in igter_move_unit() to correctly
penalise UTYF_IGTER units when slow_invasions is configured.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 06 May 2013 06:14:50 PM JST  Name: respect-slow_invasions.patch 
Size: 3kB   By: persia

<http://gna.org/patch/download.php?file_id=17898>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?3897>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to