- CrewCommander key can be changed
- Improved logic for teleporting character in/out the sub - changed Turret.AIOperate to use the new coordinate system - neutralballastlevel option in steering - crewmanager UI works properly with different numbers of crew members - fixed obstructvision "twitching" when moving in/out the sub - resetting steering velocity when AI is waiting - GetItem AIObjective ignores items outside the sub - crew has the "dismissed" order by default -
This commit is contained in:
@@ -72,6 +72,8 @@ namespace Barotrauma
|
||||
|
||||
public List<MapEntity> GetEntities(Vector2 position)
|
||||
{
|
||||
if (!MathUtils.IsValid(position)) new List<MapEntity>();
|
||||
|
||||
if (Submarine.Loaded != null) position -= Submarine.HiddenSubPosition;
|
||||
|
||||
if (position.X < limits.X || position.Y > limits.Y ||
|
||||
@@ -81,7 +83,7 @@ namespace Barotrauma
|
||||
}
|
||||
|
||||
Point indices = GetIndices(position);
|
||||
|
||||
|
||||
return entities[indices.X, indices.Y];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user