[gnome-taquin] Block play when game is finished.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-taquin] Block play when game is finished.
- Date: Sun, 17 Feb 2019 16:56:40 +0000 (UTC)
commit 34940d2f572ef9cb796ebd8853513067526ad547
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sun Feb 17 17:54:28 2019 +0100
Block play when game is finished.
It was possible to move
a tile with mouse after
the game finished. Bad.
src/taquin-view.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/taquin-view.vala b/src/taquin-view.vala
index 35808f4..527e1b3 100644
--- a/src/taquin-view.vala
+++ b/src/taquin-view.vala
@@ -476,7 +476,7 @@ private class TaquinView : Gtk.DrawingArea
internal override bool button_press_event (EventButton event)
{
- if (animate || animate_end)
+ if (finished || animate || animate_end)
return true;
if (event.button == Gdk.BUTTON_PRIMARY || event.button == Gdk.BUTTON_SECONDARY)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]