bugfix in local game
This commit is contained in:
parent
ba84d7f179
commit
1deec77900
@ -27,12 +27,12 @@ class LocalMatchManager
|
|||||||
// check whether the game is over:
|
// check whether the game is over:
|
||||||
if (grid.is_won())
|
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();
|
this.end_game();
|
||||||
}
|
}
|
||||||
else if (grid.is_complete())
|
else if (grid.is_complete())
|
||||||
{
|
{
|
||||||
this.status_change_listener("Draw. Everybody looses!", "Game Over");
|
this.status_label.innerHTML = "Draw. Everybody looses!";
|
||||||
this.end_game();
|
this.end_game();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user