代码小调整
This commit is contained in:
@@ -1270,9 +1270,9 @@ function love.run()
|
|||||||
if Timer()-lastFreshPow>2 and setting.powerInfo and loadingFinished then
|
if Timer()-lastFreshPow>2 and setting.powerInfo and loadingFinished then
|
||||||
updatePowerInfo()
|
updatePowerInfo()
|
||||||
lastFreshPow=Timer()
|
lastFreshPow=Timer()
|
||||||
_=gc.getWidth()
|
if gc.getWidth()~=scr.w then
|
||||||
if _~=scr.w then
|
love.resize(gc.getWidth(),gc.getHeight())
|
||||||
love.resize(_,gc.getHeight())
|
TEXT.show("resized",200,100,30,"stretch")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1365,12 +1365,12 @@ function player.freshBlock(P,keepGhost,control,system)
|
|||||||
|
|
||||||
if control then
|
if control then
|
||||||
if P.gameEnv.easyFresh then
|
if P.gameEnv.easyFresh then
|
||||||
local d,d0=P.lockDelay,P.gameEnv.lock
|
local d0=P.gameEnv.lock
|
||||||
if d<d0 and P.freshTime<P.gameEnv.freshLimit then
|
if P.lockDelay<d0 and P.freshTime<P.gameEnv.freshLimit then
|
||||||
if not system then
|
if not system then
|
||||||
P.freshTime=P.freshTime+1
|
P.freshTime=P.freshTime+1
|
||||||
end
|
end
|
||||||
P.lockDelay=min(d+d0*.6,d0)
|
P.lockDelay=d0
|
||||||
P.dropDelay=P.gameEnv.drop
|
P.dropDelay=P.gameEnv.drop
|
||||||
end
|
end
|
||||||
if P.curY<P.minY then
|
if P.curY<P.minY then
|
||||||
|
|||||||
Reference in New Issue
Block a user