Summary: Allow BaseFlag and RoadFlag in reqs lists
                 Project: Freeciv
            Submitted by: persia
            Submitted on: Thu 04 Apr 2013 06:28:02 AM GMT
                Category: general
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 



    While building my road and base definitions, I discovered that it didn't
work if I added extra flags and then tried to use these in the requirements
lists.  Checking the documentation in README.effects, this appeared not to be
clearly a bug, but it was still something I wanted.  The attached patch allows
these fields as requirements: although large, the vast majority is just copies
of other bits of code with the names changed (I generally matched the
TerrainFlag code, although because of iteration concerns, often lifted bits
from the Base and Road code).

    Note that this still doesn't allow definition of custom road or base
flags, so my original goal remains unfufilled, but this seemed a good point to
submit the patch, as it works in the current state (and could be used to
implement differing requirements for "River" vs. not-"River" using the flag
rather than the road name, if one wished: perhaps useful for rulesets with
multiple types of river).


File Attachments:

Date: Thu 04 Apr 2013 06:28:02 AM GMT  Name: baseflag-roadflag-reqs.patch 
Size: 26kB   By: persia



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to