[gnome-games] swell-foop: Don't replace dead tiles when changing theme
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] swell-foop: Don't replace dead tiles when changing theme
- Date: Sun, 15 Jul 2012 01:39:27 +0000 (UTC)
commit 2b8ae46b43cf2d0ff849ebdacafecdde2b331ae1
Author: Robert Ancell <robert ancell canonical com>
Date: Sun Jul 15 13:39:21 2012 +1200
swell-foop: Don't replace dead tiles when changing theme
swell-foop/src/game-view.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/swell-foop/src/game-view.vala b/swell-foop/src/game-view.vala
index 3efcb97..adb873c 100644
--- a/swell-foop/src/game-view.vala
+++ b/swell-foop/src/game-view.vala
@@ -119,7 +119,7 @@ public class GameView : Clutter.Group
{
/* For each tile object, we create a tile actor for it */
var l = game.get_tile (x, y);
- if (l == null)
+ if (l == null || l.closed)
continue;
var tile = new TileActor (l, theme.textures[l.color], tile_size);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]