Summary: Freeciv-web: ruleset action distance compatibility
                 Project: Freeciv
            Submitted by: sveinung
            Submitted on: Wed 21 Sep 2016 12:19:54 PM UTC
                Category: freeciv-web
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: sveinung
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 3.0.0
 Contains string changes: No



An unlimited max action distance is stored as the text "unlimited". The
largest non unlimited max distance an action can have was stored as a number.
The max size of that number was MAP_DISTANCE_MAX. MAP_DISTANCE_MAX is the
largest possible distance between two tiles. But this value is, because of
different max map sizes, smaller in Freeciv-web than in regular Freeciv. This
made it possible to create a ruleset that would be rejected in Freeciv-web
because of a too larger action max distance.

Define the action distance numbers without a direct reference to
MAP_DISTANCE_MAX. Add a static assertion to make sure that MAP_DISTANCE_MAX
still can be specified. This makes Freeciv and Freeciv-web rulesets compatible
(when it comes to action distance).


File Attachments:

Date: Wed 21 Sep 2016 12:19:54 PM UTC  Name:
0011-Freeciv-web-ruleset-action-distance-compat.patch  Size: 3kB   By:



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to