(c8c4b0d92) Require that the bot is in the same hull as the goto target, before calling it done.

This commit is contained in:
Joonas Rikkonen
2019-06-04 16:40:23 +03:00
parent 25a74eb7f6
commit 7f5a6f77dd
4 changed files with 14 additions and 212 deletions
@@ -15,20 +15,7 @@ namespace Barotrauma
{
radioButtons = new Dictionary<Enum, GUITickBox>();
}
public override bool Enabled
{
get => base.Enabled;
set
{
base.Enabled = value;
foreach(KeyValuePair<Enum, GUITickBox> rbPair in radioButtons)
{
rbPair.Value.Enabled = value;
}
}
}
public void AddRadioButton(Enum key, GUITickBox radioButton)
{
if (selected == key) radioButton.Selected = true;