Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2004:
[Freeciv-Dev] (PR#8502) Diplomat fix
Home

[Freeciv-Dev] (PR#8502) Diplomat fix

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#8502) Diplomat fix
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Tue, 13 Apr 2004 04:26:42 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8502 >

Client is not updated with info about how many moves left a unit has when
your diplomat kills enemy diplomats and runs out of movement before
completing its mission.

Patch attached.

  - Per

Index: server/diplomats.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/diplomats.c,v
retrieving revision 1.55
diff -u -r1.55 diplomats.c
--- server/diplomats.c  30 Mar 2004 19:00:16 -0000      1.55
+++ server/diplomats.c  13 Apr 2004 11:24:22 -0000
@@ -1177,6 +1177,7 @@
 
        wipe_unit(punit);
         pdiplomat->moves_left = MAX(0, pdiplomat->moves_left - SINGLE_MOVE);
+        send_unit_info(pplayer, pdiplomat);
         return FALSE;
       } else {
        /* Check to see if defending unit became more experienced */
@@ -1204,7 +1205,7 @@
                               "experienced."),
                             get_nation_name(pplayer->nation),
                             unit_name(pdiplomat->type));
-}
+          }
         } else {
          if (pcity) {
            notify_player_ex(cplayer, x, y,

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#8502) Diplomat fix, Per I. Mathisen <=