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

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

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#4793) shuffled_players_iterate() macro
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Fri, 8 Aug 2003 13:27:52 -0700
Reply-to: rt@xxxxxxxxxxxxxx

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.

  - Per

"This is the future for the world we're in at the moment,"
promised Lawrence Di Rita, special assistant to Rumsfeld.
"We'll get better as we do it more often."




[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#4793) shuffled_players_iterate() macro, Per I. Mathisen <=