mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-26 22:10:17 +00:00
move enex spawn position up by a little, because some enexes are placed below objects
This commit is contained in:
parent
615f8d33cd
commit
9f7861673a
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ namespace SanAndreasUnity.UI {
|
|||
int[] loadedInteriors = Cell.Instance.CellIds.Where(id => id != 0 && id != 13).ToArray();
|
||||
foreach(var enex in Importing.Items.Item.Enexes.Where(enex => loadedInteriors.Contains(enex.TargetInterior)))
|
||||
{
|
||||
_spawns.Add(new TransformDataStruct(enex.ExitPos, Quaternion.Euler(0f, enex.ExitAngle, 0f)));
|
||||
_spawns.Add(new TransformDataStruct(enex.ExitPos + Vector3.up * 0.2f, Quaternion.Euler(0f, enex.ExitAngle, 0f)));
|
||||
_spawnNames.Add(enex.Name);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue