[Freeciv-Dev] (PR#4793) shuffled_players_iterate() macro
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
[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
|
|