Add a reached ending setting to Christmas Chaos

This commit is contained in:
Alexander Meech 2016-12-04 01:55:46 -05:00 committed by GitHub
parent 97ce2d0ae6
commit d1a084b66e

View File

@ -130,6 +130,7 @@ public class Christmas extends SoloGame
}
}
};
public boolean ReachedEnding = false;
public Christmas(ArcadeManager manager)
{
@ -506,7 +507,7 @@ public class Christmas extends SoloGame
AnnounceEnd(_badGuys);
SetState(GameState.End);
}
else if (UtilTime.elapsed(GetStateTime(), _gameTime))
else if (UtilTime.elapsed(GetStateTime(), _gameTime) && !ReachedEnding)
{
for (Player player : GetPlayers(false))
{