初始化模式后记录玩家数量写入GAME表

This commit is contained in:
MrZ_26
2023-10-19 19:57:55 +08:00
parent 35635e10ea
commit c0dca683b5
2 changed files with 2 additions and 0 deletions

View File

@@ -1070,6 +1070,7 @@ do-- function resetGameData(args)
else
PLY.newPlayer(1)
end
GAME.initPlayerCount=#PLAYERS
freshPlayerPosition((args:find'q') and 'quick' or 'normal')
VK.restore()

View File

@@ -520,6 +520,7 @@ do-- Game data tables
seed=1046101471, -- Game seed
curMode=false, -- Current gamemode object
initPlayerCount=0, -- Player count when init game
mod=TABLE.new(0,#MODOPT),-- List of loaded mods
modeEnv=false, -- Current gamemode environment
setting={}, -- Game settings