(b99c0ef39) Fix the enemies not selecting another attack if they cannot reach the target.

This commit is contained in:
Joonas Rikkonen
2019-04-01 14:26:01 +03:00
parent 7971d8d3a7
commit 7e67c20ccd
6 changed files with 64 additions and 116 deletions
@@ -494,15 +494,7 @@ namespace Barotrauma.Networking
}
else
{
var defaultPerms = PermissionPreset.List.Find(p => p.Name == "None");
if (defaultPerms != null)
{
newClient.SetPermissions(defaultPerms.Permissions, defaultPerms.PermittedCommands);
}
else
{
newClient.SetPermissions(ClientPermissions.None, new List<DebugConsole.Command>());
}
newClient.SetPermissions(ClientPermissions.None, new List<DebugConsole.Command>());
}
}