[freeciv-ai] Re: Stop ferries from yoyo-ing between cities
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Mon, 14 Jun 2004, Gregory Berkolaiko wrote:
> > > Another patch might actually be
> > >
> > > - if (turns >= turns_horizon) {
> > > + if (turns + pos.turn >= turns_horizon) {
> > > UNIT_LOG(LOGLEVEL_FERRY, pferry, "%s is NOT suitable: "
> > >
> > > to punish travelling more.
> >
> > Yes, the behaviour like you describe below is possible.I think the patch
> > above is good and you should commit it if you want.
>
> Of course when turns_horizon is reset it should be reset to
> turns + pos.turn
But that would significantly change behaviour of
if (pos.turn >= turns_horizon) {
/* Won't be able to find anything better than what we have */
break;
}
? I think it is best if you try to make a patch.
- Per
|
|