2
0
Fork 0
mirror of https://github.com/GTA-ASM/SanAndreasUnity synced 2025-02-24 19:27:16 +00:00

minimap follows main camera if there is no local ped

This commit is contained in:
in0finite 2019-06-24 00:59:03 +02:00
parent 2c03d76d4d
commit e9f01099f0

View file

@ -71,8 +71,11 @@ namespace SanAndreasUnity.Behaviours
{
get
{
if (m_ped == null) return Vector3.zero;
return m_ped.transform.position;
if (m_ped != null)
return m_ped.transform.position;
if (Camera.main != null)
return Camera.main.transform.position;
return Vector3.zero;
}
}