Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2002:
[Freeciv-Dev] Re: game.timeout

[Freeciv-Dev] Re: game.timeout

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Mark Metson <markm@xxxxxxxxxxxxxxxxxxxxx>
Cc: Freeciv-Dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: game.timeout
From: Mike Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 10 Mar 2002 16:01:48 -0600

On Sun, Mar 10, 2002 at 04:39:25PM -0400, Mark Metson wrote:
> On Sun, 10 Mar 2002, Mike Kaufman wrote:
> > does anybody have any idea why GAME_MAX_TIMEOUT 
> > is set at 8639999? Why not MAX_INT 
> > 
> > or make game.timeout an unsigned or an unsigned long?
> Did anyone find out why it doesnt work, too? I found when I set timeout to 
> 24 hours it would briefly display as such each turn but promptly get 
> overwritten as 5 hours 37 minutes.

Attached is the fix. Somebody (Trent in '98) decided that 18 hours and 16 bits 
quite enough.

Note that this breaks network protocol.

maintainers: what do we want to do about this? I'm inclined to say:
now's a good a time as any to break it, (raimar: don't you have some 
network efficiency code lying around waiting for such an opportunity?)


Attachment: timeout.fix.diff
Description: Text document

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