Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2005:
[Freeciv-Dev] Re: (PR#13340) Owner change and happyborders
Home

[Freeciv-Dev] Re: (PR#13340) Owner change and happyborders

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: mstefek@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#13340) Owner change and happyborders
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 26 Jun 2005 05:44:47 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13340 >

Mateusz Stefek wrote:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=13340 >
> 
>>[per - Sun Jun 26 11:58:12 2005]:
>>
>>On Sun, 26 Jun 2005, Mateusz Stefek wrote:
>>
>>>When a tile changes it's we have to update happiness in all homecities
>>>of units standing on the tile.
>>>
>>>This is an inefficient patch.
>>>How can I (easily) prevent refreshing same city many times ?
>>
>>Set pcity->server.needs_arrange for each city and refresh the appropriate
>>cities afterwards.
> 
> city.server.needs_arrange looks like something internal for
> autoarrange_workers() - don't understand this much.

Yeah, you don't want to use that value.

> I could use city.synced, however this is intended to mean only that the
> city should be sent by send_city_info().

I don't think that's safe either.  To do what you want will take a new
value, pcity->needs_refresh.

-jason





[Prev in Thread] Current Thread [Next in Thread]