Fixed turret syncing, clients don't get a notification about changed permissions if they're assigned the same permissions they already have

This commit is contained in:
Regalis
2017-03-13 20:52:31 +02:00
parent 0874a0b059
commit 2d7d7f3d8d
2 changed files with 2 additions and 1 deletions

View File

@@ -601,6 +601,7 @@ namespace Barotrauma.Networking
private void SetPermissions(ClientPermissions newPermissions)
{
if (newPermissions == permissions) return;
GUIMessageBox.MessageBoxes.RemoveAll(mb => mb.UserData as string == "permissions");
string msg = "";