Summary: Autosettler to consider other units doing
ACTIVITY_GEN_ROAD as road builders
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Fri 02 Mar 2012 01:11:11 AM EET
                Category: general
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.5.0



Autosettler function road_bonus() wants to know if some other unit is
currently building road to nearby tiles. Goal of this patch was to make it
understand that units doing ACTIVITY_GEN_ROAD with correct road type as target
are doing just that. Function now takes target road type as parameter, and is
generally gen-roads ready.

I don't know if old behavior was a bug or intentional trick, but while
evaluating railroad connectivity benefits nearby roads were considered
railroads. Maybe it was just to get railroad building started by claiming that
first railroad tile already would connect existing railroads. And one can
consider it a predicion rather than statement of current situation; road is
going to be updated to railroad if needed.


File Attachments:

Date: Fri 02 Mar 2012 01:11:11 AM EET  Name: ASGenRoadOtherSettler.diff  Size:
3kB   By: cazfi



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to