Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2000:
[Freeciv-Dev] patches: shuffled_player(), shuffle settlers (PR#526)
Home

[Freeciv-Dev] patches: shuffled_player(), shuffle settlers (PR#526)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] patches: shuffled_player(), shuffle settlers (PR#526)
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Fri, 18 Aug 2000 18:49:05 -0700 (PDT)

I wanted to add something using shuffled player array (see below), and
got annoyed at the complication of the possibility of game.nplayers
maybe increasing between shuffles.  The first attached patch
simplifies things by adding a function shuffled_player() which takes
care of the details.  Also moved shuffle_players() to plrhand.c

The autosettlers currently act in game.players order.  In case there
are times when autosettler order is important, the second patch makes
them happen in shuffled order.

-- David

Attachment: shuffle_plr1c.diff.gz
Description: GNU Zip compressed data

Attachment: shuffle_settlers1.diff.gz
Description: GNU Zip compressed data


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] patches: shuffled_player(), shuffle settlers (PR#526), David Pfitzner <=