Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2003:
[Freeciv-Dev] Re: (PR#3697) active but zero MP
Home

[Freeciv-Dev] Re: (PR#3697) active but zero MP

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ChrisK@xxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#3697) active but zero MP
From: "a-l@xxxxxxx" <a-l@xxxxxxx>
Date: Tue, 11 Mar 2003 10:11:13 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Tue, 11 Mar 2003 02:52:07 -0800
"ChrisK@xxxxxxxx" <ChrisK@xxxxxxxx> wrote:

> 
> CVS ~ MAR 2003 GTK 1
> 
> When a unit has ended its move (has 0 MP) and is activated by player
> again, it stays active (blinking), even after a move (cursor key except
> "5") key is pressed. Any move key should work like <space> of <5>.

The attached patch fixes the problem, but I recommend applying #3699
instead of this one.


Arnstein

--- cvs/client/control.c        Sat Feb 22 10:43:01 2003
+++ no_MP_left/client/control.c Tue Mar 11 17:58:58 2003
@@ -687,6 +687,11 @@
   int dest_x, dest_y;
   struct unit req_unit;
 
+  if (punit->moves_left == 0) {
+    advance_unit_focus();
+    return;
+  }
+
   /* Catches attempts to move off map */
   if (!MAPSTEP(dest_x, dest_y, punit->x, punit->y, dir)) {
     return;

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