Complete.Org: Mailing Lists: Archives: freeciv-dev: October 1998:
[Freeciv-Dev] PRNG, and not telling the client some server options
Home

[Freeciv-Dev] PRNG, and not telling the client some server options

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxxx
Subject: [Freeciv-Dev] PRNG, and not telling the client some server options
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Sun, 25 Oct 1998 14:41:26 +1100

This is mainly Cedric's PRNG, updated yet again to current CVS, and with
an extra addition:

I've added a field "to_client" to the server options struct, so that
some server options are not reported to the client.  There are two
reasons for this:

1. Some options the client is not interested in (saveturns, scorelog),
and some the client should not know about (seed and randseed, especially
given a good deterministic PRNG).

2. With the new aqueductloss option, and now randseed, the message for
report_server_options got too long for the struct packet_generic_message
string.  There could be better ways of fixing this, but in the meantime
using to_client also works.

-- David

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


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] PRNG, and not telling the client some server options, David Pfitzner <=