mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 12:03:04 +00:00
fix
This commit is contained in:
parent
4d30a3d5d4
commit
64130195e0
1 changed files with 4 additions and 1 deletions
|
@ -530,11 +530,14 @@ namespace SanAndreasUnity.UI {
|
|||
// draw enexes
|
||||
if (m_drawEnexes)
|
||||
{
|
||||
bool worldExists = Behaviours.World.Cell.Instance != null;
|
||||
foreach (var enex in Importing.Items.Item.Enexes.Where(enex => Behaviours.World.Cell.IsExteriorLevel(enex.TargetInterior)))
|
||||
{
|
||||
this.DrawItemOnMap(
|
||||
MiniMap.Instance.GreenHouseTexture,
|
||||
Behaviours.World.Cell.Instance.GetPositionBasedOnInteriorLevel(enex.EntrancePos, enex.TargetInterior),
|
||||
worldExists
|
||||
? Behaviours.World.Cell.Instance.GetEnexEntranceTransform(enex).position
|
||||
: enex.EntrancePos,
|
||||
10);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue