Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2003:
[Freeciv-Dev] (PR#4793) shuffled_players_iterate() macro
Home

[Freeciv-Dev] (PR#4793) shuffled_players_iterate() macro

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#4793) shuffled_players_iterate() macro
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 8 Aug 2003 20:27:33 -0700
Reply-to: rt@xxxxxxxxxxxxxx

[per - Fri Aug  8 20:27:51 2003]:

> On Fri, 8 Aug 2003, Jason Short wrote:
> > This patch provides a macro that iterates over all players in the game,
> > in their shuffled order.
> 
> In all cases where you want to shuffle you can also check if pplayer is
> alive in the iterator before executing. This avoids some unnecessary CPU
> usage.

True - I'd like to make that a separate patch (so this patch has no
chance of changing behavior).  I think the whole shuffling system needs
a closer look in general.  It has some problems the way it is now, and
I'm not sure what to do about them.

jason



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