Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2002:
[Freeciv-Dev] Re: Timeout before first turn
Home

[Freeciv-Dev] Re: Timeout before first turn

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Mike Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Cc: Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Timeout before first turn
From: Thomas Strub <ue80@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 12 Oct 2002 20:17:01 +0200

On Sat, Oct 12, 2002 at 12:30:29PM -0500, Mike Kaufman wrote:
> On Sat, Oct 12, 2002 at 05:47:43PM +0100, Gregory Berkolaiko wrote:
> > On Sat, 12 Oct 2002, Thomas Strub wrote:
> > 
> > > Hi,
> > > 
> > > this patch resets the serverclock after the map is generated. So the
> > > players get the full time in the first turn.
> > > 
> > > This closes 2169
> > 
> > Why this place?  Why not just before the main_loop() ?

game.turn_start is sent to the player in 
 send_all_info(&game.game_connections);

So it has to be calculated before that.

> > I am not saying it should go there, I'm merely asking...
> 
> I say it should go there, and probably eliminate the one in start_game() as
> well.

Elimination of game.turn_start = time(NULL); in start_game is ok.
turn_start is overwritten by the new calculation.

Thomas

Attachment: timeout-begin-game2.diff
Description: Text document


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