mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-27 15:54:25 +02:00
Fix NPCs updating too often
This commit is contained in:
parent
eff7029411
commit
241cb8af9c
@ -505,7 +505,6 @@
|
|||||||
Me.Rotation.Y = GetRotationFromInteger(ChangeRotation).Y
|
Me.Rotation.Y = GetRotationFromInteger(ChangeRotation).Y
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Me.Update()
|
|
||||||
MyBase.UpdateEntity()
|
MyBase.UpdateEntity()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
@ -950,6 +950,10 @@ Public Class Level
|
|||||||
OffsetmapEntities.RemoveAt(i)
|
OffsetmapEntities.RemoveAt(i)
|
||||||
i -= 1
|
i -= 1
|
||||||
Else
|
Else
|
||||||
|
If TryCast(OffsetmapEntities(i), NPC) IsNot Nothing Then
|
||||||
|
CType(OffsetmapEntities(i), NPC).Update()
|
||||||
|
End If
|
||||||
|
|
||||||
OffsetmapEntities(i).UpdateEntity()
|
OffsetmapEntities(i).UpdateEntity()
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user