Complete.Org: Mailing Lists: Archives: freeciv-dev: January 1999:
Re: [Freeciv-Dev] goto bug
Home

Re: [Freeciv-Dev] goto bug

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Andrew E. Schulman" <andrex@xxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] goto bug
From: Nicolas BRUNEL <brunel@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 8 Jan 1999 23:37:39 +0100 (CET)

On Thu, 7 Jan 1999, Andrew E. Schulman wrote:

> Sign into this game as andrex (Aztec), and go to the Indian city of
> Calcutta.  To the left of Calcutta is one of my battleships, which is going
> to Multan, northeast of Calcutta.  After you click on "Turn done", that
> battleship will try to go through Calcutta to Multan.

I think ai use goto to attach cities.
The same possibility was available for human.
If a path for a boat go though a city, this path won't be discard.
That's what i understood reading gotohand.c

Bye, 
--- freeciv-mod/server/gotohand.c       Tue Dec 15 10:51:05 1998
+++ freeciv/server/gotohand.c   Fri Jan  8 23:16:59 1999
@@ -480,7 +480,8 @@
         if (!dir_ok(x, y, dest_x, dest_y, k)) c += c;
         tm = warmap.seacost[x][y] + c;
         if (warmap.seacost[x][y] < punit->moves_left && tm < maxcost &&
-            (pplayer->ai.control || !same_pos(xx[i], yy[j], dest_x, dest_y)) &&
+            (pplayer->ai.control) &&
+            /* (pplayer->ai.control || !same_pos(xx[i], yy[j], dest_x, 
dest_y)) && */
             tm >= punit->moves_left - (get_transporter_capacity(punit) >
             unit_types[punit->type].attack_strength ? 3 : 2) &&
             enemies_at(punit, xx[i], yy[j])) {

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