Fix dancing NPCs rounding off position when done
This commit is contained in:
parent
c8cf5caeac
commit
333873fdae
|
@ -802,11 +802,13 @@
|
||||||
|
|
||||||
If Moved <= 0.0F Then
|
If Moved <= 0.0F Then
|
||||||
MoveAsync = False
|
MoveAsync = False
|
||||||
|
If Not isDancing Then
|
||||||
|
Me.Position = New Vector3(CInt(Me.Position.X), CSng(Me.Position.Y), CInt(Me.Position.Z))
|
||||||
|
End If
|
||||||
Moved = 0.0F
|
Moved = 0.0F
|
||||||
MoveY = 0.0F
|
MoveY = 0.0F
|
||||||
AnimationX = 1
|
AnimationX = 1
|
||||||
AnimationDelay = AnimationDelayLength
|
AnimationDelay = AnimationDelayLength
|
||||||
Me.Position = New Vector3(CInt(Me.Position.X), CSng(Me.Position.Y), CInt(Me.Position.Z))
|
|
||||||
ChangeTexture()
|
ChangeTexture()
|
||||||
ApplyShaders()
|
ApplyShaders()
|
||||||
Speed = NPC.STANDARD_SPEED
|
Speed = NPC.STANDARD_SPEED
|
||||||
|
|
Loading…
Reference in New Issue