Browse Source

Reverted `MAX_PLRS` to raw literal without unsigned annotation

pull/4/head
Dennis Duda 8 years ago
parent
commit
0b29cbb97b
  1. 2
      Source/player.cpp
  2. 2
      defs.h

2
Source/player.cpp

@ -675,7 +675,7 @@ void __fastcall CreatePlayer(int pnum, char c)
ClearPlrRVars(&plr[pnum]);
SetRndSeed(GetTickCount());
if ( pnum >= MAX_PLRS )
if ( (DWORD)pnum >= MAX_PLRS )
{
TermMsg("CreatePlayer: illegal player %d", pnum);
}

2
defs.h

@ -6,7 +6,7 @@
#define LIGHTSIZE 6912 // 27 * 256
// must be unsigned to generate unsigned comparisons with pnum
#define MAX_PLRS 4U
#define MAX_PLRS 4
#define MAX_CHARACTERS 10
#define MAX_LVLMTYPES 16

Loading…
Cancel
Save