From 1dcce5f3b2429b6adf7b49546b217e960d41c7e1 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 28 Jun 2021 19:07:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E6=AD=A3=E7=A1=AE=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E5=BD=95=E5=83=8F=E9=87=8C=E7=9A=84mod=EF=BC=88?= =?UTF-8?q?=E5=A4=A7=E6=A6=82=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/replays.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/parts/scenes/replays.lua b/parts/scenes/replays.lua index 5b4e8099..5931935f 100644 --- a/parts/scenes/replays.lua +++ b/parts/scenes/replays.lua @@ -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)