]> git.pond.sub.org Git - empserver/commitdiff
Store uids as int to support more sectors and units
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 30 Dec 2009 13:07:51 +0000 (14:07 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 19 Jan 2010 07:26:42 +0000 (08:26 +0100)
Before, they were stored as short.  Wider uids use more space, but the
next commit will recover it by narrowing other members.

The use of short has always limited the number of ships, planes, land
units and nukes to SHRT_MAX (commonly 32768).  Only the most extreme
games ever came close.

Commit 49780e2c (v4.3.12) added struct sctstr member sct_uid to make
struct empobj member uid work for sectors.  This made the limit apply
to sectors as well.  We've had games with more than 32768 sectors.


No differences found