整理代码

This commit is contained in:
MrZ626
2021-07-10 02:07:17 +08:00
parent 82dc468868
commit a1980cf766

View File

@@ -239,7 +239,7 @@ end
--Update data
do
local needSave,autoRestart
local needSave
if type(STAT.version)~='number'then
STAT.version=0
@@ -259,7 +259,7 @@ do
if STAT.version~=VERSION.code then
STAT.version=VERSION.code
needSave=true
autoRestart=true
love.event.quit('restart')
end
if SETTING.ghostType=='greyCell'then
SETTING.ghostType='grayCell'
@@ -305,9 +305,6 @@ do
FILE.save(RANKS,'conf/unlock')
FILE.save(STAT,'conf/data')
end
if autoRestart then
love.event.quit('restart')
end
end
--Apply system setting