[gnome-games] mahjongg: Fix hints showing when doing new hints / cancelling them
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] mahjongg: Fix hints showing when doing new hints / cancelling them
- Date: Mon, 24 Oct 2011 21:38:07 +0000 (UTC)
commit c266b548ddcb94375e4718954620c4be684bf0b8
Author: Robert Ancell <robert ancell canonical com>
Date: Mon Oct 24 17:38:03 2011 -0400
mahjongg: Fix hints showing when doing new hints / cancelling them
mahjongg/src/game.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/mahjongg/src/game.vala b/mahjongg/src/game.vala
index 9f095b1..563d6c9 100644
--- a/mahjongg/src/game.vala
+++ b/mahjongg/src/game.vala
@@ -180,6 +180,11 @@ public class Game
public void set_hint (Tile? tile0, Tile? tile1)
{
+ if (hint_tiles[0] != null)
+ redraw_tile (hint_tiles[0]);
+ if (hint_tiles[1] != null)
+ redraw_tile (hint_tiles[1]);
+
/* Stop hints */
if (tile0 == null && tile1 == null)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]