Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2001:
[Freeciv-Dev] patch #1 (diplomats)
Home

[Freeciv-Dev] patch #1 (diplomats)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] patch #1 (diplomats)
From: Karl-Ingo Friese <kif@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 12 Jun 2001 17:33:33 +0200 (CEST)

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



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