Changed GUIMessageBox.MessageBoxes from a queue to a list to make it easier to remove messageboxes that aren't currently visible, fixed clients creating multiple "permissions changed" messageboxes if there's another messagebox on the screen
This commit is contained in:
@@ -1226,7 +1226,7 @@ namespace Barotrauma
|
||||
|
||||
if (GUIMessageBox.MessageBoxes.Count>0)
|
||||
{
|
||||
var currentMessageBox = GUIMessageBox.MessageBoxes.Peek();
|
||||
var currentMessageBox = GUIMessageBox.VisibleBox;
|
||||
if (currentMessageBox != null && currentMessageBox.UserData as string == subName)
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user