[Freeciv-Dev] Re: [PATCH] Re: AI questions
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
> > Do we need to re-generate warmap in part three? I would remove it, as
> > it looks
> > only as wasting CPU time for me, the map shouldn't change while
> > executing
> > that function. What do you think?
>
> I think that the map doesn't change but your location might.
> And if you are in the same location then the warmap is cached.
Aha, if it's cached then it's ok.
> > x = punit->x; y = punit->y;
> > - if (is_ground_unit(punit)) con = map_get_continent(x, y);
> > - else con = 0; /* Thanks, Tony */
> > + if (is_ground_unit(punit)) continent = map_get_continent(x, y);
> > + else continent = 0; /* ships don't care about continents */
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> I am not sure this comment is correct
Why? They explore just water, that's clear even from that statement.
> > + /* We won't travel to another continents or into foreign
>
> "another continent" or "other continents"
Ok :-)
At http://pasky.ji.cz/~pasky/dev/freeciv/ there's this patch with the english
corrected. And with one condition corrected, otherwise we end in infinite loop.
I really promise I will start testing my patches before submitting them just
now, as it looks it is really neccessary. With the patch actually lying there
(i won't at least flood you with tons of various buggy versions of one patch
;-), I managed to run at least [rand]seed=42 aifill=8 autogame with no probs
to the year -250, I will let it run during night.
--
Petr "Pasky" Baudis
UN*X programmer, UN*X administrator, hobbies = IPv6, IRC
Real Users hate Real Programmers.
Public PGP key, geekcode and stuff: http://pasky.ji.cz/~pasky/
- [Freeciv-Dev] AI questions, Petr Baudis, 2001/11/23
- [Freeciv-Dev] Re: AI questions, Raahul Kumar, 2001/11/23
- [Freeciv-Dev] Re: AI questions, Petr Baudis, 2001/11/24
- [Freeciv-Dev] Re: AI questions, Raahul Kumar, 2001/11/24
- [Freeciv-Dev] Re: AI questions, Petr Baudis, 2001/11/24
- [Freeciv-Dev] Re: AI questions, Raahul Kumar, 2001/11/24
- [Freeciv-Dev] [PATCH] Re: AI questions, Petr Baudis, 2001/11/24
- [Freeciv-Dev] Re: [PATCH] Re: AI questions, Gregory Berkolaiko, 2001/11/24
- [Freeciv-Dev] Re: [PATCH] Re: AI questions,
Petr Baudis <=
- [Freeciv-Dev] AI, Raahul Kumar, 2001/11/25
- [Freeciv-Dev] Re: AI, Raimar Falke, 2001/11/25
- [Freeciv-Dev] Re: AI, Raahul Kumar, 2001/11/25
- [Freeciv-Dev] Re: AI, Petr Baudis, 2001/11/25
- [Freeciv-Dev] Re: AI, Petr Baudis, 2001/11/25
- [Freeciv-Dev] Re: AI, Petr Baudis, 2001/11/25
- [Freeciv-Dev] Re: AI, Raahul Kumar, 2001/11/27
- [Freeciv-Dev] Re: AI (THRESHOLD magic), Petr Baudis, 2001/11/27
- [Freeciv-Dev] Re: AI (THRESHOLD magic), Raahul Kumar, 2001/11/28
- [Freeciv-Dev] Re: AI (THRESHOLD magic), Raahul Kumar, 2001/11/28
|
|