Non-humanoids can't interact with items

This commit is contained in:
Joonas Rikkonen
2017-07-06 19:25:16 +03:00
parent c7fd6818a4
commit 90a584d122

View File

@@ -157,7 +157,7 @@ namespace Barotrauma
public bool CanInteract
{
get { return AllowInput && !LockHands; }
get { return AllowInput && IsHumanoid && !LockHands; }
}
public Vector2 CursorPosition
@@ -1218,7 +1218,7 @@ namespace Barotrauma
return;
}
if (!AllowInput || LockHands)
if (!CanInteract)
{
if (selectedCharacter != null)
{