[Freeciv-Dev] PATCH: city_landlocked_sell_coastal_improvements
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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?"
landlock.patch
Description: Text document
- [Freeciv-Dev] PATCH: city_landlocked_sell_coastal_improvements,
Ben Webb <=
|
|