* Fixed a bug that winning with alternate win condition (e.g. Biovisionary) did not set game end date. That leads to a NPE in client.

This commit is contained in:
LevelX2 2014-08-14 14:08:41 +02:00
parent 484a4fe0f6
commit f0e8041906
3 changed files with 80 additions and 2 deletions

View file

@ -459,7 +459,6 @@ public abstract class GameImpl implements Game, Serializable {
player.won(this);
}
}
endTime = new Date();
return true;
}
return false;
@ -869,6 +868,7 @@ public abstract class GameImpl implements Game, Serializable {
@Override
public void end() {
if (!state.isGameOver()) {
endTime = new Date();
state.endGame();
for (Player player: state.getPlayers().values()) {
player.abort();