From 4062dd3ee6ccf4997935a5cbac0dc263a3ba17c1 Mon Sep 17 00:00:00 2001 From: kuronekochomusuke Date: Tue, 28 Nov 2023 18:09:40 -0500 Subject: [PATCH] dont set gm to an observer when they have no units --- megamek/src/megamek/server/GameManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/megamek/src/megamek/server/GameManager.java b/megamek/src/megamek/server/GameManager.java index 1a566c6e304..17a30c56a1b 100644 --- a/megamek/src/megamek/server/GameManager.java +++ b/megamek/src/megamek/server/GameManager.java @@ -536,7 +536,7 @@ public void disconnect(Player player) { public void checkForObservers() { for (Enumeration e = getGame().getPlayers(); e.hasMoreElements(); ) { Player p = e.nextElement(); - p.setObserver((getGame().getEntitiesOwnedBy(p) < 1) && !getGame().getPhase().isLounge()); + p.setObserver((!p.isGameMaster()) && (getGame().getEntitiesOwnedBy(p) < 1) && !getGame().getPhase().isLounge()); } }