URL:
<http://gna.org/patch/?7715>
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
_______________________________________________________
Details:
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:
sveinung
<http://gna.org/patch/download.php?file_id=28703>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?7715>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev