[Freeciv-Dev] Changing multiple city productions
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
I have frequently found in playing freeciv (especially multiplayer) that
it would be useful to change all production of one unit to another. The
canonical example is to change all phalanxes to musketeers (before
researching feudalism). Other cases that have occurred to me in actual
games are cannon->cavalry armor->howitzer and galleon->destroyer.
Therefore, I have written the atached patch, which adds a "change in
production" button to the activeunits dialog.
The alterations are entirely to client/gui-gtk/repodlgs.c and the diff is
from the June 2nd CVS snapshot. (The unit_is_obsolete(int) function might
be better implemented in common/units.c, but I leave that question to the
maintainers.) I've tested it pretty thouroughly on my own system (i686
RH6.2) and everything works. It shouldn't break anything else (there are
very few changes outside of itself).
I hope this can go into the next release of freeciv. Feel free to contact
me with any questions/problems.
--Daniel Speyer
"May the /src be with you, always"
change-prod-repodlgs.c.diff
Description: Binary data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] Changing multiple city productions,
Daniel Speyer <=
|
|