Commit 34940d2f authored by Arnaud Bonatti's avatar Arnaud Bonatti

Block play when game is finished.

It was possible to move
a tile with mouse after
the game finished. Bad.
parent 5b248e4f
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment