URL:
<http://gna.org/patch/?6980>
Summary: Move some functions from mapgen.c to proper modules
Project: Freeciv
Submitted by: cazfi
Submitted on: Fri 19 Feb 2016 12:30:49 PM 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.6.0, 3.0.0
_______________________________________________________
Details:
This is to enable progress on patch #6882 (see patch #6945 comments)
There would be space for bigger rearrangements, but they don't belong to S2_6,
and in TRUNK we already have several simultaneous changes going on in
mapgenerator code - let's avoid creating too many patch conflicts.
> struct terrain *pick_terrain()
The 'enum mapgen_terrain_property' is already used in common code, as those
values are read from the rulesets. pick_terrain() could also be useful
function for the editor to have access to. I wouldn't move it to common code
for such speculative features when there's not even plans to implement them,
though.
- pick_terrain_by_flag() moved to utilities.[ch]
- pick_terrain() moved to utilities.[ch]
- terrain_is_too_flat() moved to height_map.[ch] as area_is_too_flat()
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 19 Feb 2016 12:30:49 PM EET Name: MapgenFuncsMove.patch Size: 20kB
By: cazfi
<http://gna.org/patch/download.php?file_id=26769>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?6980>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev