(513733e88) Check that the character is inside the same room as the target before repairing/operating an item.

This commit is contained in:
Joonas Rikkonen
2019-05-03 13:47:39 +03:00
parent 1ff1584be5
commit 5031432e77
6 changed files with 321 additions and 59 deletions
@@ -87,7 +87,7 @@ namespace Barotrauma
{
FindRepairTool();
}
if (character.CanInteractWith(Item))
if (character.CurrentHull == Item.CurrentHull && character.CanInteractWith(Item))
{
if (repairTool != null)
{