[Freeciv-Dev] Re: Timeout before first turn
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
timeout-begin-game2.diff
Description: Text document
|
|