Complete.Org: Mailing Lists: Archives: freeciv-ai: May 2003:
[freeciv-ai] Re: improve diplomat logging + bugfix

[freeciv-ai] Re: improve diplomat logging + bugfix

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv AI development <freeciv-ai@xxxxxxxxxxx>
Subject: [freeciv-ai] Re: improve diplomat logging + bugfix
From: Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxx>
Date: Tue, 6 May 2003 23:10:48 +0100 (BST)

On Tue, 6 May 2003, Per I. Mathisen wrote:

> Both your suggested solutions look fine to me.

I followed the suggestion by Jason.  And then noticed another
mistake in the old code.  So the new looks like this:

    /* Get the time to dest in turns (minimum 1 turn) */
    time_to_dest = (time_to_dest + ut->move_rate - 1) / ut->move_rate;
    /* Discourage long treks */
    time_to_dest *= ((time_to_dest + 1) / 2);

I hope it's ok.


[Prev in Thread] Current Thread [Next in Thread]
  • [freeciv-ai] Re: improve diplomat logging + bugfix, Gregory Berkolaiko <=