diff --git a/megamek/src/megamek/server/totalwarfare/TWGameManager.java b/megamek/src/megamek/server/totalwarfare/TWGameManager.java index 654abcce5fc..554a34d4572 100644 --- a/megamek/src/megamek/server/totalwarfare/TWGameManager.java +++ b/megamek/src/megamek/server/totalwarfare/TWGameManager.java @@ -1340,7 +1340,7 @@ private String getDetailedVictoryReport() { */ public void forceVictory(Player victor, boolean endImmediately, boolean ignorePlayerVotes) { game.setEndImmediately(endImmediately); - game.setIgnorePlayerDefeatVotes(endImmediately); + game.setIgnorePlayerDefeatVotes(ignorePlayerVotes); game.setForceVictory(true); if (victor.getTeam() == Player.TEAM_NONE) { game.setVictoryPlayerId(victor.getId()); @@ -1350,9 +1350,7 @@ public void forceVictory(Player victor, boolean endImmediately, boolean ignorePl game.setVictoryTeam(victor.getTeam()); } - List playersVector = game.getPlayersList(); - for (int i = 0; i < playersVector.size(); i++) { - Player player = playersVector.get(i); + for (Player player : game.getPlayersList()) { player.setAdmitsDefeat(false); } }