[Freeciv-Dev] patch #1 (diplomats)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Hello there,
as promised; I submit a few patches for the cvs version ...
all are done against freeciv-cvs-jun-01.tar.
The first one is very simple. It forbids diplomats to do
their actions from a ship. I just c&p it at the end of this
email. We tested it one evening in a LAN game, which of cause
doesnt mean that I missed something ;)
Possible "Extensions":
- could be turned on or off via server variable ..
- could give an error message to the client. Right now its
"Only ground troups can take a city", "Diplomat can not
do this from a ship." might be better.
Hope you like it,
Ingo / ChaosE
File(s): unit.c (common tree)
Patch:
101a102,104
> if (action!=DIPLOMAT_MOVE && map_get_terrain(pdiplomat->x,
> pdiplomat->y)==T_OCEAN)
> return 0;
>
--
Karl-Ingo Friese
kif@xxxxxxxxxxxxxxxxxxxxxxxxxx
- [Freeciv-Dev] patch #1 (diplomats),
Karl-Ingo Friese <=
|
|