Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] Re: premature end of goto (PR#1009)
Home

[Freeciv-Dev] Re: premature end of goto (PR#1009)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Christian Knoke <ChrisK@xxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: premature end of goto (PR#1009)
From: Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>
Date: Sat, 13 Oct 2001 22:17:59 +0100 (BST)

 --- Christian Knoke <ChrisK@xxxxxxxx> wrote: 
> Am Samstag, 13. Oktober 2001 01:20 schrieb Christian Knoke:
> > CVS 12 OCT 2001 Linux i386 Gtk+
> >
> > The execution of the goto command sometimes stops
> > before the unit reaches the endpoint, if other *own*
> > units are *aside* the route.
> >
> 
> To be more precise, Goto and Connect doesn't work any more
> in many cases, it often stops after the first turn.

mea culpa

please try the attached patch.
if problems are not fixed, please send me the savegames.

Sorry,
G.

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
--- freeciv/server/unittools.c  Sat Oct  6 13:54:31 2001
+++ freeciv_mod/server/unittools.c      Sat Oct 13 23:01:44 2001
@@ -3134,7 +3134,7 @@
       return GR_FOUGHT;
     }
 
-    if (!res) {
+    if (!res && punit->moves_left) {
       freelog(LOG_DEBUG, "move idling\n");
       handle_unit_activity_request(punit, ACTIVITY_IDLE);
       return GR_FAILED;

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