[Freeciv-Dev] (PR#10087) stop AI settling on other players' land
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients: ; |
Subject: |
[Freeciv-Dev] (PR#10087) stop AI settling on other players' land |
From: |
"Per I. Mathisen" <per@xxxxxxxxxxx> |
Date: |
Mon, 13 Sep 2004 11:37:13 -0700 |
Reply-to: |
rt@xxxxxxxxxxx |
<URL: http://rt.freeciv.org/Ticket/Display.html?id=10087 >
This patch makes the AI not settle on the land of other players that it is
not at war with if borders option is on. There has been many requests for
this.
- per
Index: ai/aisettler.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/ai/aisettler.c,v
retrieving revision 1.4
diff -u -r1.4 aisettler.c
--- ai/aisettler.c 26 Aug 2004 22:08:42 -0000 1.4
+++ ai/aisettler.c 13 Sep 2004 18:35:35 -0000
@@ -487,6 +487,12 @@
* likelihood go away next turn, or even in a few nanoseconds. */
continue;
}
+ if (game.borders > 0
+ && ptile->owner != NULL
+ && !pplayers_at_war(ptile->owner, pplayer)) {
+ /* Land theft does not make for good neighbours. */
+ continue;
+ }
/* Calculate worth */
city_desirability(pplayer, ai, punit, pos.x, pos.y, &result);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#10087) stop AI settling on other players' land,
Per I. Mathisen <=
|
|