Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2000:
[Freeciv-Dev] Re: The implementation if freeciv ID numbers
Home

[Freeciv-Dev] Re: The implementation if freeciv ID numbers

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Jeff Mallatt <jjm@xxxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: The implementation if freeciv ID numbers
From: Thue Janus Kristensen <thue@xxxxxxx>
Date: Sun, 19 Mar 2000 17:27:42 +0100

On Sun, 19 Mar 2000, Jeff Mallatt wrote:
> At 2000/03/18 14:10 , Thue Janus Kristensen wrote:
> >So before I begin to pile more use if the current ID system on top, is there
> >any reason why we couldn't just use an 32-bit int counting ever upwards
> (well,
> >that would limit the number of units in the game to 4294967296 ever).
> 
> If every civilization's ecomomy could build ten units per second, and there
> were 13 civilizations, the game could last at most a year (unless I screwed
> up the arithmetic).
> 
> I don't see any reason to not do this.
> 
> jjm

The reason would be that we could use unsigned shorts instead of ints in most
packets, saving 2 bytes.

-Thue



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