adjusted the way the maximum player count is handled, and bumped it up to 64 just in case
This commit is contained in:
parent
c0e7ce2a54
commit
2dac3d69f7
@ -57,6 +57,8 @@ MODE_DEBUG_SHOWBOXES = false
|
|||||||
MODE_DEBUG_VPLTEST = false
|
MODE_DEBUG_VPLTEST = false
|
||||||
MODE_CHEAT_FLY = false
|
MODE_CHEAT_FLY = false
|
||||||
|
|
||||||
|
MODE_PLAYERS_MAX = 64
|
||||||
|
|
||||||
MODE_MAX_FOG = 127.5
|
MODE_MAX_FOG = 127.5
|
||||||
MODE_DEFAULT_FOG = 60
|
MODE_DEFAULT_FOG = 60
|
||||||
-- v This extends the fog distance a bit for gl users, to match the softgm renderer at the screen centre.
|
-- 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
|
end
|
||||||
|
|
||||||
damage_blk = {}
|
damage_blk = {}
|
||||||
players = {max = 32, current = 1}
|
players = {max = MODE_PLAYERS_MAX, current = 1}
|
||||||
intent = {}
|
intent = {}
|
||||||
nades = {head = 1, tail = 0}
|
nades = {head = 1, tail = 0}
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ function new_intel(settings)
|
|||||||
-- see if anyone has picked us up
|
-- see if anyone has picked us up
|
||||||
local mplr = nil
|
local mplr = nil
|
||||||
local mdd = 2*2
|
local mdd = 2*2
|
||||||
for i=1,32 do
|
for i=1,players.max do
|
||||||
local plr = players[i]
|
local plr = players[i]
|
||||||
|
|
||||||
if plr and plr.alive then
|
if plr and plr.alive then
|
||||||
@ -266,7 +266,7 @@ function new_tent(settings)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- see if anyone is restocking
|
-- see if anyone is restocking
|
||||||
for i=1,32 do
|
for i=1,players.max do
|
||||||
local plr = players[i]
|
local plr = players[i]
|
||||||
|
|
||||||
if plr then
|
if plr then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user