Controllers can't focus the camera on broken items (none of the current focusable items can break but may be useful for modders). Closes #590

This commit is contained in:
Joonas Rikkonen
2018-08-06 22:14:37 +03:00
parent a5a09aa664
commit cfc03f8443

View File

@@ -245,6 +245,7 @@ namespace Barotrauma.Items.Components
for (int i = item.LastSentSignalRecipients.Count - 1; i >= 0; i--)
{
if (item.LastSentSignalRecipients[i].Condition <= 0.0f) continue;
if (item.LastSentSignalRecipients[i].Prefab.FocusOnSelected)
{
return item.LastSentSignalRecipients[i];