From 2dac3d69f7554d1c292bc813d8f82d0eeffbf57f Mon Sep 17 00:00:00 2001 From: "Ben Russell (300178622)" Date: Tue, 25 Jun 2013 19:52:44 +1200 Subject: [PATCH] adjusted the way the maximum player count is handled, and bumped it up to 64 just in case --- pkg/base/common.lua | 4 +++- pkg/base/obj_intent.lua | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pkg/base/common.lua b/pkg/base/common.lua index b7f36fb..e6ea841 100644 --- a/pkg/base/common.lua +++ b/pkg/base/common.lua @@ -57,6 +57,8 @@ MODE_DEBUG_SHOWBOXES = false MODE_DEBUG_VPLTEST = false MODE_CHEAT_FLY = false +MODE_PLAYERS_MAX = 64 + MODE_MAX_FOG = 127.5 MODE_DEFAULT_FOG = 60 -- v This extends the fog distance a bit for gl users, to match the softgm renderer at the screen centre. @@ -270,7 +272,7 @@ do end damage_blk = {} -players = {max = 32, current = 1} +players = {max = MODE_PLAYERS_MAX, current = 1} intent = {} nades = {head = 1, tail = 0} diff --git a/pkg/base/obj_intent.lua b/pkg/base/obj_intent.lua index 35f684a..9743f66 100644 --- a/pkg/base/obj_intent.lua +++ b/pkg/base/obj_intent.lua @@ -60,7 +60,7 @@ function new_intel(settings) -- see if anyone has picked us up local mplr = nil local mdd = 2*2 - for i=1,32 do + for i=1,players.max do local plr = players[i] if plr and plr.alive then @@ -266,7 +266,7 @@ function new_tent(settings) end -- see if anyone is restocking - for i=1,32 do + for i=1,players.max do local plr = players[i] if plr then