Fixed some stats being added after send-off

This commit is contained in:
Chiss 2014-08-26 17:45:35 +10:00
parent 0546c9e175
commit 7e7906865f
3 changed files with 1 additions and 6 deletions

View File

@ -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<Player> getWinners();

View File

@ -127,9 +127,6 @@ public abstract class SoloGame extends Game
@Override
public List<Player> getWinners()
{
if (!IsLive())
return null;
if (GetPlayers(true).size() <= 1)
{
List<Player> places = _players.GetPlacements(true);

View File

@ -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())