修复旋转时场地晃动的逻辑会跟玩家sound有关
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user