Enabling characters when switching control to them (when switching to a disabled far-away monster for example)
This commit is contained in:
@@ -32,6 +32,11 @@ namespace Barotrauma
|
|||||||
if (controlled == value) return;
|
if (controlled == value) return;
|
||||||
controlled = value;
|
controlled = value;
|
||||||
CharacterHUD.Reset();
|
CharacterHUD.Reset();
|
||||||
|
|
||||||
|
if (controlled != null)
|
||||||
|
{
|
||||||
|
controlled.Enabled = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user