[gnome-mines] Minefield: ignore the clock after we explode



commit 52f660115ab060f068c9bb6c7388f7f01dc62460
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Thu Aug 28 01:19:52 2014 +0200

    Minefield: ignore the clock after we explode
    
    If we attempt a multiclear by clicking on a number location that
    has enough flags and that explodes, we will still get releases
    for the other location around the clicked one, but we must make
    sure they don't start the clock, because nothing is going to
    stop it in the future, and it messes the rest of the view.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=735556

 src/minefield.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/minefield.vala b/src/minefield.vala
index d9416e0..c537e54 100644
--- a/src/minefield.vala
+++ b/src/minefield.vala
@@ -164,7 +164,8 @@ public class Minefield : Object
 
     public void clear_mine (uint x, uint y)
     {
-        start_clock ();
+        if (!exploded)
+            start_clock ();
 
         /* Place mines on first attempt to clear */
         if (!placed_mines)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]