[hitori] Disable the game play timer after winning



commit 5dd5554021b45e5c2b3fc16fbf28040ce051d66d
Author: Philip Withnall <philip tecnocode co uk>
Date:   Tue Jul 8 23:17:07 2014 +0100

    Disable the game play timer after winning
    
    In certain situations, the game play timer could become re-enabled after
    winning a game (but before starting the next one). Only un-pause it if
    event processing is enabled (i.e. a game is underway).

 src/interface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/interface.c b/src/interface.c
index aaf18c3..b61b245 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -453,7 +453,7 @@ hitori_window_state_event_cb (GtkWindow *window, GdkEventWindowState *event, Hit
                }
 
                hitori_pause_timer (hitori);
-       } else if (timer_was_running == TRUE) {
+       } else if (timer_was_running && hitori->processing_events) {
                /* Re-start the timer */
                hitori_start_timer (hitori);
        }


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