[freeciv-ai] Re: improve diplomat logging + bugfix
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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]
||[Next in Thread]|
- [freeciv-ai] Re: improve diplomat logging + bugfix,
Gregory Berkolaiko <=