Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] (PR#9763) Not fair: get_defender() fallbacs to tile arriva
Home

[Freeciv-Dev] (PR#9763) Not fair: get_defender() fallbacs to tile arriva

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: marko.lindqvist@xxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#9763) Not fair: get_defender() fallbacs to tile arrival time when selecting between equal units.
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 22 Aug 2004 23:46:33 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9763 >

Both inserting the units in random order, and taking them out in random
order, breaks the reproducability of saving+loading.  In the former case
when inserting the units on load the random order will be changed, and
extra rand() calls will be done.  In the latter case the fact that the
unit order has changed means the random selection (although the rand()
value is the same) will be different.

My conclusion is that the defender_priority solution is better than
either of these.

jason



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