summaryrefslogtreecommitdiff
path: root/src/hexen/d_net.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/d_net.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/d_net.c')
-rw-r--r--src/hexen/d_net.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hexen/d_net.c b/src/hexen/d_net.c
index 5bd0eed0..bd0e8b21 100644
--- a/src/hexen/d_net.c
+++ b/src/hexen/d_net.c
@@ -76,7 +76,7 @@ static void RunTic(ticcmd_t *cmds, boolean *ingame)
// Check for player quits.
- for (i = 0; i < MAXPLAYERS; ++i)
+ for (i = 0; i < maxplayers; ++i)
{
if (!demoplayback && playeringame[i] && !ingame[i])
{
@@ -120,7 +120,7 @@ static void LoadGameSettings(net_gamesettings_t *settings)
respawnparm = settings->respawn_monsters;
consoleplayer = settings->consoleplayer;
- for (i=0; i<MAXPLAYERS; ++i)
+ for (i=0; i<maxplayers; ++i)
{
playeringame[i] = i < settings->num_players;
PlayerClass[i] = settings->player_classes[i];
@@ -172,7 +172,7 @@ static void InitConnectData(net_connect_data_t *connect_data)
connect_data->lowres_turn = false;
connect_data->drone = false;
- connect_data->max_players = MAXPLAYERS;
+ connect_data->max_players = maxplayers;
//!
// @category net