[Freeciv-Dev] Re: [PATCH] Re: AI questions
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
--- Petr Baudis <pasky@xxxxxxxxxxx> wrote:
[.. discussion about ai_manage_explorer ..]
> 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.
> Patch is attached. Ok, I reformat one small part of one condition
> 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
> + /* We won't travel to another continents or into foreign
"another continent" or "other continents"
All in all there is nothing particulary great about the patch but it is a
step in the right direction (provided Raimar is satisfied with
formatting).
Best,
G.
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and
Music Charts
http://uk.my.yahoo.com
- [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 <=
- [Freeciv-Dev] Re: [PATCH] Re: AI questions, Petr Baudis, 2001/11/24
- [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
|
|