mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-12-27 21:20:45 +00:00
Add a descriptive comment about the MAXSKINS macro
This commit is contained in:
parent
1a84f1bcba
commit
290adb2372
1 changed files with 6 additions and 1 deletions
|
@ -223,8 +223,13 @@ extern char logfilename[1024];
|
||||||
#define MAXPLAYERNAME 21
|
#define MAXPLAYERNAME 21
|
||||||
#define PLAYERSMASK (MAXPLAYERS-1)
|
#define PLAYERSMASK (MAXPLAYERS-1)
|
||||||
|
|
||||||
|
// Don't make MAXSKINS higher than 256, since skin numbers are used with an
|
||||||
|
// UINT8 in various parts of the codebase. If you do anyway, the data type
|
||||||
|
// of those variables will have to be changed into at least an UINT16.
|
||||||
|
// This change must affect code such as demo recording and playback,
|
||||||
|
// and the structure of some networking packets and commands.
|
||||||
#define MAXSKINS 256
|
#define MAXSKINS 256
|
||||||
#define MAXCHARACTERSLOTS (MAXSKINS * 3)
|
#define MAXCHARACTERSLOTS (MAXSKINS * 3) // Should be higher than MAXSKINS.
|
||||||
|
|
||||||
#define COLORRAMPSIZE 16
|
#define COLORRAMPSIZE 16
|
||||||
#define MAXCOLORNAME 32
|
#define MAXCOLORNAME 32
|
||||||
|
|
Loading…
Reference in a new issue