[four-in-a-row] Update text before blinking on win.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [four-in-a-row] Update text before blinking on win.
- Date: Sat, 21 Dec 2019 16:47:15 +0000 (UTC)
commit e06f5ba7430e455310b7812ed9066ec152043f64
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat Dec 21 17:47:01 2019 +0100
Update text before blinking on win.
src/four-in-a-row.vala | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/four-in-a-row.vala b/src/four-in-a-row.vala
index 22b71a5..8d85349 100644
--- a/src/four-in-a-row.vala
+++ b/src/four-in-a-row.vala
@@ -463,6 +463,8 @@ private class FourInARow : Gtk.Application
score [winner]++;
scorebox.update (score, one_player_game);
prompt_player ();
+ if (winner != PlayerID.NOBODY)
+ blink_winner (6);
}
else
{
@@ -489,7 +491,6 @@ private class FourInARow : Gtk.Application
else
play_sound (SoundID.PLAYER_WIN);
window.allow_hint (false);
- blink_winner (6);
}
else if (moves == 42)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]