Complete.Org:
Mailing Lists:
Archives:
freeciv-dev:
August 2000: [Freeciv-Dev] patches: shuffled_player(), shuffle settlers (PR#526) |
[Freeciv-Dev] patches: shuffled_player(), shuffle settlers (PR#526)[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
shuffle_plr1c.diff.gz
shuffle_settlers1.diff.gz
|