Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] PATCH: city_landlocked_sell_coastal_improvements
Home

[Freeciv-Dev] PATCH: city_landlocked_sell_coastal_improvements

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] PATCH: city_landlocked_sell_coastal_improvements
From: Ben Webb <ben@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 11 Oct 2001 15:24:13 +0100 (BST)

        Since the generalised improvements patch to Freeciv (as part of
the FreecivAC project, at http://freecivac.sf.net/) is still a bit on the
large side (and would provoke howls of consternation should it ever be
added to Freeciv-CVS) here is a teeny-tiny part of it. It generalises the
city_landlocked_sell_coastal_improvements function to use data from
buildings.ruleset to decide which buildings to sell. I believe it's fairly
straightforward, and shouldn't cause any problems with the code. I
certainly can't imagine that it would much affect server performance!

        In theory, this function could be generalised to handle selling
buildings that require certain terrain/specials whenever these
terrain/specials are removed, but I don't want to go messing with all the
code that currently calls city_landlocked_sell_coastal_improvements right
now. ;)

Comments?

        Ben
-- 
ben@xxxxxxxxxxxxxxxxxxxxxx           http://bellatrix.pcl.ox.ac.uk/~ben/
"And do you know Carolina where the biscuits are soft and sweet?"

Attachment: landlock.patch
Description: Text document


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