URL:
<http://gna.org/patch/?6768>
Summary: Remove the function unit_build_city_test().
Project: Freeciv
Submitted by: sveinung
Submitted on: Fri 01 Jan 2016 02:01:34 AM UTC
Category: general
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
_______________________________________________________
Details:
It checked that the target tile didn't have a city. Move this to
unit_can_build_city().
It mapped from city_build_here_test()'s enum city_build_result result to a
enum unit_add_build_city_result. The enum city_build_result covers everything
unit_add_build_city_result is used for. Remove it. Have
unit_build_city_test()'s users call city_build_here_test() directly. Have them
handle its enum city_build_result return value.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 01 Jan 2016 02:01:34 AM UTC Name:
0001-Remove-the-function-unit_build_city_test.patch Size: 8kB By: sveinung
<http://gna.org/patch/download.php?file_id=26226>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?6768>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev