summaryrefslogtreecommitdiff
path: root/src/hexen/in_lude.c
diff options
context:
space:
mode:
authorFabian Greffrath2015-03-30 18:13:10 +0200
committerFabian Greffrath2015-03-30 18:13:10 +0200
commit535b4edd143ceeae870e9c13cdac65ce17e2be48 (patch)
tree11fa61069a3a5f73160913881af8f345d9312b7c /src/hexen/in_lude.c
parent833d8a838b44a950ebde587db1d888bf0a98e690 (diff)
parente0eb95922fbda64aca169d62029a5be071e1273f (diff)
downloadchocolate-doom-535b4edd143ceeae870e9c13cdac65ce17e2be48.tar.gz
chocolate-doom-535b4edd143ceeae870e9c13cdac65ce17e2be48.tar.bz2
chocolate-doom-535b4edd143ceeae870e9c13cdac65ce17e2be48.zip
Merge pull request #523 from chocolate-doom/hexndemo
Add support for the Hexen 4 Level Demo Version
Diffstat (limited to 'src/hexen/in_lude.c')
-rw-r--r--src/hexen/in_lude.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/hexen/in_lude.c b/src/hexen/in_lude.c
index daabf497..7b137006 100644
--- a/src/hexen/in_lude.c
+++ b/src/hexen/in_lude.c
@@ -106,7 +106,7 @@ void IN_Start(void)
skipintermission = false;
intertime = 0;
AM_Stop();
- for (i = 0; i < MAXPLAYERS; i++)
+ for (i = 0; i < maxplayers; i++)
{
players[i].messageTics = 0;
players[i].message[0] = 0;
@@ -208,13 +208,13 @@ static void InitStats(void)
posnum = 0;
playercount = 0;
slaughtercount = 0;
- for (i = 0; i < MAXPLAYERS; i++)
+ for (i = 0; i < maxplayers; i++)
{
totalFrags[i] = 0;
if (playeringame[i])
{
playercount++;
- for (j = 0; j < MAXPLAYERS; j++)
+ for (j = 0; j < maxplayers; j++)
{
if (playeringame[j])
{
@@ -338,7 +338,7 @@ static void CheckForSkip(void)
player_t *player;
static boolean triedToSkip;
- for (i = 0, player = players; i < MAXPLAYERS; i++, player++)
+ for (i = 0, player = players; i < maxplayers; i++, player++)
{
if (playeringame[i])
{
@@ -478,10 +478,10 @@ static void DrDeathTally(void)
S_StartSound(NULL, SFX_PLATFORM_STOP);
}
y = yPos >> FRACBITS;
- for (i = 0; i < MAXPLAYERS; i++)
+ for (i = 0; i < maxplayers; i++)
{
xPos = xStart;
- for (j = 0; j < MAXPLAYERS; j++, xPos += xDelta)
+ for (j = 0; j < maxplayers; j++, xPos += xDelta)
{
x = xPos >> FRACBITS;
bold = (i == consoleplayer || j == consoleplayer);