Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] (PR#9733) ocean patch bug
Home

[Freeciv-Dev] (PR#9733) ocean patch bug

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9733) ocean patch bug
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 18 Aug 2004 09:56:19 -0700
Reply-to: rt@xxxxxxxxxxx

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

See PR#9637.

Does this patch still need to be applied?

jason

? saves
? t1
? t2
? ttt.gz
Index: ai/aiexplorer.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/ai/aiexplorer.c,v
retrieving revision 1.2
diff -u -r1.2 aiexplorer.c
--- ai/aiexplorer.c     13 Aug 2004 15:59:11 -0000      1.2
+++ ai/aiexplorer.c     14 Aug 2004 17:34:22 -0000
@@ -185,7 +185,8 @@
   if ((unit_flag(punit, F_TRIREME) && 
        is_likely_trireme_loss(pplayer, x, y))
       || map_get_city(x, y)
-      || map_get_continent(x, y) != continent
+      || (continent != 0 && map_get_continent(x, y) != continent)
+      || (continent == 0 && is_ocean(map_get_terrain(x, y))
       || (is_barbarian(pplayer) && map_has_special(x, y, S_HUT))) {
     return 0;
   }

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#9733) ocean patch bug, Jason Short <=