(ec7e0c3d1) Take stuck and open doors into account when evaluating path access.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:28:07 +03:00
parent 3bce90251a
commit b628abbf7d
9 changed files with 343 additions and 80 deletions
@@ -320,6 +320,8 @@ namespace Barotrauma
var door = node.ConnectedDoor;
if (door != null)
{
if (door.IsOpen) { return true; }
if (door.IsStuck) { return false; }
if (door.HasIntegratedButtons)
{
if (!door.HasRequiredItems(character, false))