Fixed fish being selectable

Closes #91
This commit is contained in:
juanjp600
2017-12-07 00:01:48 -03:00
parent a272d22de8
commit 26216a0d99
2 changed files with 8 additions and 3 deletions
@@ -1031,7 +1031,7 @@ namespace Barotrauma
public bool CanInteractWith(Character c, float maxDist = 200.0f)
{
if (c == this || !c.Enabled || !c.CanBeSelected) return false;
if (c == this || !c.Enabled || !c.IsHumanoid || !c.CanBeSelected) return false;
maxDist = ConvertUnits.ToSimUnits(maxDist);
if (Vector2.DistanceSquared(SimPosition, c.SimPosition) > maxDist * maxDist) return false;