[Freeciv-Dev] Re: (PR#3697) active but zero MP
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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;
|
|