Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2005:
[Freeciv-Dev] Re: (PR#12913) send the ruleset to the clients always
Home

[Freeciv-Dev] Re: (PR#12913) send the ruleset to the clients always

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#12913) send the ruleset to the clients always
From: "Mike Kaufman" <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 27 Apr 2005 11:10:16 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12913 >

On Wed, Apr 27, 2005 at 11:01:52AM -0700, Jason Short wrote:
> 
> patch the client will crash if you try this.  However I can't figure out
> where the client is freeing this data so I don't see how to fix it.
> Mike, can you offer advice here?

If the game is running, then the server asks the client to change state (I
believe PRE_GAME_STATE). This in effect reboots the client. Look in
civclient.c. This should probably be rewritten. We need a new sc packet to
tell the client to clear the map and player (and probably game) structs.
Then we wouldn't need to resend the rulesets.

-mike





[Prev in Thread] Current Thread [Next in Thread]