修复STAT.lastPlay的更新时机不当

This commit is contained in:
MrZ626
2021-03-14 12:47:16 +08:00
parent 56803fa83b
commit 7020bbc55d
2 changed files with 6 additions and 1 deletions

View File

@@ -336,7 +336,6 @@ do
end
if STAT.version<1300 then
STAT.lastPlay="sprint_10l"
for _,name in next,fs.getDirectoryItems("replay")do
fs.remove("replay/"..name)
end

View File

@@ -138,6 +138,12 @@ local loadingThread=coroutine.create(function()
end
if i%5==0 then YIELD()end
end
upFloor()
if not MODES[STAT.lastPlay]then
STAT.lastPlay="sprint_10l"
end
upFloor()
SKIN.change(SETTING.skinSet)
if newVersionLaunch then--Delete old ranks & Unlock modes which should be locked