Fixed WorldMap PlayerSkin bug when surf or ride

This commit is contained in:
Jasper "JappaWakka" Speelman 2022-04-10 19:19:54 +02:00
parent 53d9823387
commit cd9474ac5c
1 changed files with 7 additions and 1 deletions

View File

@ -485,7 +485,13 @@
If Core.Player.IsGameJoltSave And GameJolt.API.LoggedIn Then
PlayerSkinTexture = GameJolt.Emblem.GetOnlineSprite(Core.GameJoltSave.GameJoltID)
Else
PlayerSkinTexture = TextureManager.GetTexture("Textures\NPC\" & Core.Player.Skin)
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)