修复旋转时场地晃动的逻辑会跟玩家sound有关
This commit is contained in:
@@ -624,7 +624,6 @@ do
|
||||
P.freshTime=P.freshTime-1
|
||||
end
|
||||
|
||||
if P.sound then
|
||||
local sfx
|
||||
if ifpre then
|
||||
sfx='prerotate'
|
||||
@@ -640,6 +639,7 @@ do
|
||||
else
|
||||
sfx='rotate'
|
||||
end
|
||||
if P.sound then
|
||||
SFX.play(sfx,nil,P:getCenterX()*.15)
|
||||
end
|
||||
P.stat.rotate=P.stat.rotate+1
|
||||
|
||||
@@ -698,7 +698,6 @@ function Player:spin(d,ifpre)
|
||||
end
|
||||
|
||||
--Sound & Field shaking
|
||||
if self.sound then
|
||||
local sfx
|
||||
if ifpre then
|
||||
sfx='prerotate'
|
||||
@@ -714,6 +713,7 @@ function Player:spin(d,ifpre)
|
||||
else
|
||||
sfx='rotate'
|
||||
end
|
||||
if self.sound then
|
||||
SFX.play(sfx,nil,self:getCenterX()*.15)
|
||||
end
|
||||
self.stat.rotate=self.stat.rotate+1
|
||||
|
||||
Reference in New Issue
Block a user