(7ee8dbc11) v0.9.8.0
This commit is contained in:
@@ -721,8 +721,10 @@ namespace Barotrauma.RuinGeneration
|
||||
|
||||
//doors create their own gaps, don't create an additional one if there's a door at this
|
||||
bool doorFound = false;
|
||||
foreach (Door door in doors)
|
||||
foreach (Item item in Item.ItemList)
|
||||
{
|
||||
var door = item.GetComponent<Door>();
|
||||
if (door == null) { continue; }
|
||||
if (Math.Abs(door.Item.WorldPosition.X - gapRect.Value.Center.X) < 5 &&
|
||||
Math.Abs(door.Item.WorldPosition.Y - gapRect.Value.Center.Y) < 5)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user