修复IRS生效后不会自动松开旋转键 close #114
This commit is contained in:
@@ -543,9 +543,9 @@ function Player:resetBlock()--Reset Block's position and execute I*S
|
|||||||
self.curY=y
|
self.curY=y
|
||||||
self.minY=y+self.cur.sc[1]
|
self.minY=y+self.cur.sc[1]
|
||||||
|
|
||||||
local _=self.keyPressing
|
local pressing=self.keyPressing
|
||||||
--IMS
|
--IMS
|
||||||
if self.gameEnv.ims and(_[1]and self.movDir==-1 or _[2]and self.movDir==1)and self.moving>=self.gameEnv.das then
|
if self.gameEnv.ims and(pressing[1]and self.movDir==-1 or pressing[2]and self.movDir==1)and self.moving>=self.gameEnv.das then
|
||||||
local x=self.curX+self.movDir
|
local x=self.curX+self.movDir
|
||||||
if not self:ifoverlap(B,x,y)then
|
if not self:ifoverlap(B,x,y)then
|
||||||
self.curX=x
|
self.curX=x
|
||||||
@@ -554,19 +554,18 @@ function Player:resetBlock()--Reset Block's position and execute I*S
|
|||||||
|
|
||||||
--IRS
|
--IRS
|
||||||
if self.gameEnv.irs then
|
if self.gameEnv.irs then
|
||||||
if _[5]then
|
if pressing[5]then
|
||||||
self:spin(2,true)
|
self:spin(2,true)
|
||||||
else
|
elseif pressing[3]then
|
||||||
if _[3]then
|
if pressing[4]then
|
||||||
if _[4]then
|
self:spin(2,true)
|
||||||
self:spin(2,true)
|
else
|
||||||
else
|
self:spin(1,true)
|
||||||
self:spin(1,true)
|
|
||||||
end
|
|
||||||
elseif _[4]then
|
|
||||||
self:spin(3,true)
|
|
||||||
end
|
end
|
||||||
|
elseif pressing[4]then
|
||||||
|
self:spin(3,true)
|
||||||
end
|
end
|
||||||
|
pressing[3],pressing[4],pressing[5]=false,false,false
|
||||||
end
|
end
|
||||||
|
|
||||||
--DAS cut
|
--DAS cut
|
||||||
|
|||||||
Reference in New Issue
Block a user