[freeciv-ai] Re: (PR#6912) Optimize/reimplement CM: per-city caches
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients: ; |
Subject: |
[freeciv-ai] Re: (PR#6912) Optimize/reimplement CM: per-city caches |
From: |
"Benoit Hudson" <bh@xxxxxxxxxxxxxxxxxxx> |
Date: |
Tue, 20 Jul 2004 16:41:06 -0700 |
Reply-to: |
rt@xxxxxxxxxxx |
<URL: http://rt.freeciv.org/Ticket/Display.html?id=6912 >
On Tue, Jul 20, 2004 at 09:04:18PM +0000, Per Inge Mathisen wrote:
> On Tue, 20 Jul 2004, Jason Short wrote:
> > > The one hypothetical problem I can see: if someone copies the city and
> > > sends in a fake city with the same ID but different other attributes.
> > > But I can't think of anything better than city-ID to index by (indexing
> > > by memory address has its own problems).
> >
> > Per, do you think the AI will do this?
>
> I am not sure what you mean by "fake" here. What is the difference here
> between "genuine" changes and "fake" changes?
>
> Virtual cities always have an id of zero. Being able to send a virtual
> city to CM would be nice.
I probably meant "virtual" when I said "fake." If they all have an ID
of zero, the code should special-case on that.
-- Benoît
|
|