修卡块旋转音效播放条件错误
This commit is contained in:
@@ -690,7 +690,7 @@ do
|
|||||||
local sfx
|
local sfx
|
||||||
if ifpre then
|
if ifpre then
|
||||||
sfx='prerotate'
|
sfx='prerotate'
|
||||||
elseif P:ifoverlap(icb,x,y+1) and P:ifoverlap(icb,x-1,y) and P:ifoverlap(icb,x+1,y) then
|
elseif y==P.ghoY and P:ifoverlap(icb,x,y+1) and P:ifoverlap(icb,x-1,y) and P:ifoverlap(icb,x+1,y) then
|
||||||
sfx='rotatekick'
|
sfx='rotatekick'
|
||||||
P:_rotateField(d)
|
P:_rotateField(d)
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -1232,7 +1232,7 @@ function Player:spin(d,ifpre)
|
|||||||
local sfx
|
local sfx
|
||||||
if ifpre then
|
if ifpre then
|
||||||
sfx='prerotate'
|
sfx='prerotate'
|
||||||
elseif self:ifoverlap(icb,ix,iy+1) and self:ifoverlap(icb,ix-1,iy) and self:ifoverlap(icb,ix+1,iy) then
|
elseif iy==self.ghoY and self:ifoverlap(icb,ix,iy+1) and self:ifoverlap(icb,ix-1,iy) and self:ifoverlap(icb,ix+1,iy) then
|
||||||
sfx='rotatekick'
|
sfx='rotatekick'
|
||||||
self:_rotateField(d)
|
self:_rotateField(d)
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user