On 15.10.2012 11:17, Michael T. Pope wrote:
> On Sun, 7 Oct 2012 12:59:47 PM Michael Vehrs wrote:
>    
>> Better safe than sorry, but as far as I can see, the addition of a unit
>> is the only way for a colony to "dirty" a tile. Whether the unit is new,
>> or was expelled from a building, is secondary. And this could be safely
>> (and cheaply) checked by looking at the number of units on the colony
>> tile before and after the main actions of csNewTurn.
>>      
> I am wary of that method.  Somewhere in the server->client messaging I was
> using the tile unit count to detect changes, and had a hard time debugging a
> case where one unit was added and one removed.
>
> Cheers,
> Mike Pope
>    

I don't see how that could happen during csNewTurn at the moment, but 
you are right, of course. Just checking the number of units present is 
too brittle.

Regards

Michael



------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Freecol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freecol-developers

Reply via email to