Fix player blip

This commit is contained in:
Sardelka9515 2022-08-20 11:32:35 +08:00
parent 3a088ddbfc
commit fa4fe2c10f
3 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,10 @@
using System.Windows;
[assembly:ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]

View File

@ -170,7 +170,7 @@ namespace RageCoop.Client
{
PedBlip.Sprite=BlipSprite;
}
if (IsPlayer && PedBlip.Name!=Owner.Username)
if (IsPlayer)
{
PedBlip.Name = Owner.Username;
}

View File

@ -36,6 +36,9 @@ namespace RageCoop.Client
if (value==_ownerID && Owner!=null) { return; }
_ownerID = value;
Owner=PlayerList.GetPlayer(value);
if(this is SyncedPed && Owner!=null){
Owner.Character=((SyncedPed)this);
}
}
}