可以正确加载录像里的mod(大概)

This commit is contained in:
MrZ626
2021-06-28 19:07:48 +08:00
parent cb2f011b19
commit 1dcce5f3b2

View File

@@ -43,7 +43,12 @@ local function replay(fileName)
elseif MODES[rep.mode]then
GAME.seed=rep.seed
GAME.setting=rep.setting
GAME.mod=rep.mod
TABLE.cut(GAME.mod)
for i=1,#MODOPT do MODOPT[i].sel=0 end
for _,m in next,rep.mod do
MODOPT[m[1]+1].sel=m[2]
table.insert(GAME.mod,MODOPT[m[1]+1])
end
GAME.rep={}
DATA.pumpRecording(rep.data,GAME.rep)