From 7e7906865ff641912b6196c541b6106751552b23 Mon Sep 17 00:00:00 2001 From: Chiss Date: Tue, 26 Aug 2014 17:45:35 +1000 Subject: [PATCH] Fixed some stats being added after send-off --- .../src/nautilus/game/arcade/game/Game.java | 2 -- .../src/nautilus/game/arcade/game/SoloGame.java | 3 --- .../src/nautilus/game/arcade/managers/GameManager.java | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/Game.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/Game.java index a1ed4fbcd..d77a2b868 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/Game.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/Game.java @@ -1102,8 +1102,6 @@ public abstract class Game implements Listener past = _stats.get(player).get(stat); _stats.get(player).put(stat, limitTo1 ? Math.min(1, past + amount) : past + amount); - - System.out.println("Game Queued Stat: " + stat + " [" + amount + "]"); } public abstract List getWinners(); diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/SoloGame.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/SoloGame.java index c8e1abd0c..b34578ce8 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/SoloGame.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/SoloGame.java @@ -127,9 +127,6 @@ public abstract class SoloGame extends Game @Override public List getWinners() { - if (!IsLive()) - return null; - if (GetPlayers(true).size() <= 1) { List places = _players.GetPlacements(true); diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/managers/GameManager.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/managers/GameManager.java index 1f08bbf9d..8e04c8730 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/managers/GameManager.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/managers/GameManager.java @@ -274,7 +274,7 @@ public class GameManager implements Listener @EventHandler public void StatRegister(GameStateChangeEvent event) { - if (event.GetState() != GameState.End) + if (event.GetState() != GameState.Dead) return; for (Player player : event.GetGame().GetStats().keySet())