Fixed WorldMap PlayerSkin bug when surf or ride
This commit is contained in:
parent
53d9823387
commit
cd9474ac5c
|
@ -484,9 +484,15 @@
|
|||
|
||||
If Core.Player.IsGameJoltSave And GameJolt.API.LoggedIn Then
|
||||
PlayerSkinTexture = GameJolt.Emblem.GetOnlineSprite(Core.GameJoltSave.GameJoltID)
|
||||
Else
|
||||
If Screen.Level.Surfing = True Then
|
||||
PlayerSkinTexture = TextureManager.GetTexture("Textures\NPC\" & Core.Player.TempSurfSkin)
|
||||
ElseIf Screen.Level.Riding = True Then
|
||||
PlayerSkinTexture = TextureManager.GetTexture("Textures\NPC\" & Core.Player.TempRideSkin)
|
||||
Else
|
||||
PlayerSkinTexture = TextureManager.GetTexture("Textures\NPC\" & Core.Player.Skin)
|
||||
End If
|
||||
End If
|
||||
Dim PlayerSkinWidth As Integer = CInt(PlayerSkinTexture.Width / 3)
|
||||
Dim PlayerSkinHeight As Integer = CInt(PlayerSkinTexture.Height / 4)
|
||||
Dim PlayerSkinScale As Single = 1.0F
|
||||
|
|
Loading…
Reference in New Issue