代码小调整

This commit is contained in:
MrZ_26
2020-08-22 02:04:52 +08:00
parent 7ecadb0ff1
commit e8f0efb22c
2 changed files with 6 additions and 6 deletions

View File

@@ -1270,9 +1270,9 @@ function love.run()
if Timer()-lastFreshPow>2 and setting.powerInfo and loadingFinished then
updatePowerInfo()
lastFreshPow=Timer()
_=gc.getWidth()
if _~=scr.w then
love.resize(_,gc.getHeight())
if gc.getWidth()~=scr.w then
love.resize(gc.getWidth(),gc.getHeight())
TEXT.show("resized",200,100,30,"stretch")
end
end

View File

@@ -1365,12 +1365,12 @@ function player.freshBlock(P,keepGhost,control,system)
if control then
if P.gameEnv.easyFresh then
local d,d0=P.lockDelay,P.gameEnv.lock
if d<d0 and P.freshTime<P.gameEnv.freshLimit then
local d0=P.gameEnv.lock
if P.lockDelay<d0 and P.freshTime<P.gameEnv.freshLimit then
if not system then
P.freshTime=P.freshTime+1
end
P.lockDelay=min(d+d0*.6,d0)
P.lockDelay=d0
P.dropDelay=P.gameEnv.drop
end
if P.curY<P.minY then