Complete.Org: Mailing Lists: Archives: freeciv-ai: January 2003:
[freeciv-ai] Re: (PR#2477) Improved Auto-Explore
Home

[freeciv-ai] Re: (PR#2477) Improved Auto-Explore

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Cameron Morland via RT <rt@xxxxxxxxxxxxxx>
Cc: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: (PR#2477) Improved Auto-Explore
From: Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxx>
Date: Wed, 8 Jan 2003 10:27:54 +0000 (GMT)

I found another mistake:

+  if (map_get_known(x, y, pplayer) && map_has_special(x, y, S_HUT)) {
+    /* we want to explore huts whenever we can. */
+    desirable += HUT_SCORE;
+  }
+
+  if (unknown <= 0) {
+    /* We make sure we'll uncover at least one unexplored tile. */
+    desirable = 0;
+  }

These should be transposed:  if we can get a HUT, we don't care for 
unknowns!

You don't have to resubmit the patch just because of this change.  Wait 
for a report from my anonymous reviewer ;)

After that I will just commit it.

G.




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