bugfix in local game

This commit is contained in:
Jonas Weinz 2019-03-21 20:03:09 +01:00
parent ba84d7f179
commit 1deec77900

View File

@ -27,12 +27,12 @@ class LocalMatchManager
// check whether the game is over:
if (grid.is_won())
{
this.status_change_listener("" + grid.get_won_player().get_name() + " has won.", "Game Over")
this.status_label.innerHTML = "" + grid.get_won_player().get_name() + " has won.";
this.end_game();
}
else if (grid.is_complete())
{
this.status_change_listener("Draw. Everybody looses!", "Game Over");
this.status_label.innerHTML = "Draw. Everybody looses!";
this.end_game();
}
else