Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2003:
[Freeciv-Dev] Re: (PR#4593) Diplomats
Home

[Freeciv-Dev] Re: (PR#4593) Diplomats

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ggracian@xxxxxxx
Subject: [Freeciv-Dev] Re: (PR#4593) Diplomats
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Sat, 19 Jul 2003 11:41:39 -0700
Reply-to: rt@xxxxxxxxxxxxxx

On Fri, 18 Jul 2003, Per I. Mathisen wrote:
> Here is another patch that makes the diplomat go idle after winning a
> diplomat contest, and then loses one movement point.

Genevieve pointed out a silly error in my previous patch. So attached is a
new one.

  - Per

Index: server/diplomats.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/diplomats.c,v
retrieving revision 1.38
diff -u -r1.38 diplomats.c
--- server/diplomats.c  26 Jun 2003 23:03:13 -0000      1.38
+++ server/diplomats.c  19 Jul 2003 18:01:05 -0000
@@ -1112,6 +1112,8 @@
                           " %s."), unit_name(punit->type), pcity->name);
 
        wipe_unit_safe(punit, &myiter);
+        pdiplomat->moves_left = MAX(0, pdiplomat->moves_left - SINGLE_MOVE);
+        return FALSE;
       } else {
        /* Attacking Spy/Diplomat dies. */
 

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