[quadrapassel] Prevent setting up timer when game has ended
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [quadrapassel] Prevent setting up timer when game has ended
- Date: Wed, 14 Dec 2016 17:00:49 +0000 (UTC)
commit 729ef2f0e2fbf60f3843a6d014620bc08b3c40a3
Author: Tomi Leppänen <tomi leppanen telemail fi>
Date: Mon Sep 19 22:05:51 2016 +0300
Prevent setting up timer when game has ended
Prevents drop timer from being set up when the game has ended. This
prevents segfault when pause key is pressed twice after the game ended.
https://bugzilla.gnome.org/show_bug.cgi?id=771541
src/game.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/game.vala b/src/game.vala
index a793388..4a6cb62 100644
--- a/src/game.vala
+++ b/src/game.vala
@@ -261,7 +261,7 @@ public class Game : Object
set
{
_paused = value;
- if (has_started)
+ if (has_started && !game_over)
setup_drop_timer ();
pause_changed ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]