Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2002:
[Freeciv-Dev] Re: [PATCH] city_landlocked_sell_coastal_improvements gene
Home

[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]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [PATCH] city_landlocked_sell_coastal_improvements generalisation (PR#1105)
From: Ben Webb <ben@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 21 May 2002 09:16:07 -0700 (PDT)

        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"

Attachment: landlock-v2.patch
Description: Text document


[Prev in Thread] Current Thread [Next in Thread]