[Freeciv-Dev] Re: [PATCH] city_landlocked_sell_coastal_improvements gene
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Here's a modified version of the landlock patch. It now uses the
"nice" impr_type_iterate macro to iterate through all improvements (in a
recently-landlocked city) that are candidates for auto-selling. The
logic is a little more general now; previously when a city became
landlocked, only buildings that required Ocean tiles were sold, whereas
now buildings that require one of a selection of terrain types (e.g.
terr_gate = "River", "Ocean") are also sold if the removal of Ocean
tiles now means that none of the terrain types are available. (Thanks to
Josh for pointing that out!)
Ben
--
ben@xxxxxxxxxxxxxxxxxxxxxx http://bellatrix.pcl.ox.ac.uk/~ben/
"Lately I'm in to circuitry"
landlock-v2.patch
Description: Text document
- [Freeciv-Dev] Re: [PATCH] city_landlocked_sell_coastal_improvements generalisation (PR#1105),
Ben Webb <=
|
|