Fix player blip
This commit is contained in:
parent
3a088ddbfc
commit
fa4fe2c10f
10
RageCoop.Client.Installer/AssemblyInfo.cs
Normal file
10
RageCoop.Client.Installer/AssemblyInfo.cs
Normal 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)
|
||||
)]
|
@ -170,7 +170,7 @@ namespace RageCoop.Client
|
||||
{
|
||||
PedBlip.Sprite=BlipSprite;
|
||||
}
|
||||
if (IsPlayer && PedBlip.Name!=Owner.Username)
|
||||
if (IsPlayer)
|
||||
{
|
||||
PedBlip.Name = Owner.Username;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user