[gnome-games/gsoc-seed-games] [same-gnome-clutter] Use correct dimension to calculate new tile position



commit 4f973945787fac1e89243eb3c4972d1fd8c7844a
Author: Tim Horton <hortont svn gnome org>
Date:   Mon Jul 13 16:29:23 2009 -0400

    [same-gnome-clutter] Use correct dimension to calculate new tile position

 same-gnome-clutter/src/Board.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/same-gnome-clutter/src/Board.js b/same-gnome-clutter/src/Board.js
index 29926a9..03c89b0 100644
--- a/same-gnome-clutter/src/Board.js
+++ b/same-gnome-clutter/src/Board.js
@@ -231,7 +231,7 @@ Board = new GType({
 					li.set_light_y(parseInt(y,10));
 					
 					var new_x = real_x * main.tile_size + main.offset;
-					var new_y = (main.size_o.columns - y - 1) * main.tile_size + main.offset;
+					var new_y = (main.size_o.rows - y - 1) * main.tile_size + main.offset;
 					
 					if(!li.get_closed() && ((new_x != li.x) ||
 										    (new_y != li.y)))



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