修复旋转时场地晃动的逻辑会跟玩家sound有关

This commit is contained in:
MrZ626
2021-08-21 01:15:54 +08:00
parent 8671b52cbb
commit b7b94ca900
2 changed files with 28 additions and 28 deletions

View File

@@ -624,7 +624,6 @@ do
P.freshTime=P.freshTime-1 P.freshTime=P.freshTime-1
end end
if P.sound then
local sfx local sfx
if ifpre then if ifpre then
sfx='prerotate' sfx='prerotate'
@@ -640,6 +639,7 @@ do
else else
sfx='rotate' sfx='rotate'
end end
if P.sound then
SFX.play(sfx,nil,P:getCenterX()*.15) SFX.play(sfx,nil,P:getCenterX()*.15)
end end
P.stat.rotate=P.stat.rotate+1 P.stat.rotate=P.stat.rotate+1

View File

@@ -698,7 +698,6 @@ function Player:spin(d,ifpre)
end end
--Sound & Field shaking --Sound & Field shaking
if self.sound then
local sfx local sfx
if ifpre then if ifpre then
sfx='prerotate' sfx='prerotate'
@@ -714,6 +713,7 @@ function Player:spin(d,ifpre)
else else
sfx='rotate' sfx='rotate'
end end
if self.sound then
SFX.play(sfx,nil,self:getCenterX()*.15) SFX.play(sfx,nil,self:getCenterX()*.15)
end end
self.stat.rotate=self.stat.rotate+1 self.stat.rotate=self.stat.rotate+1