[gnome-2048/arnaudb/wip/gtk4: 56/57] Fix bug.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-2048/arnaudb/wip/gtk4: 56/57] Fix bug.
- Date: Mon, 28 Sep 2020 14:35:56 +0000 (UTC)
commit 8643091e03daa8785e514f94c3699e1e8130926b
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Wed Jul 29 18:26:05 2020 +0200
Fix bug.
src/game.vala | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/game.vala b/src/game.vala
index 6d1736b..8bf641f 100644
--- a/src/game.vala
+++ b/src/game.vala
@@ -442,10 +442,10 @@ private class Game : Gtk.Widget
{
debug (@"prepare move tile from $from to $to");
- bool row_move = (from.col == to.col);
+// bool row_move = (from.col == to.col);
- RoundedRectangle rect_from = _background [from.col, from.row];
- RoundedRectangle rect_to = _background [ to.col, to.row];
+// RoundedRectangle rect_from = _background [from.col, from.row];
+// RoundedRectangle rect_to = _background [ to.col, to.row];
// TileView? tile_view = _foreground_cur [from.col, from.row];
// if (tile_view == null)
@@ -609,17 +609,17 @@ private class Game : Gtk.Widget
_grid.move (request, ref _to_move, ref _to_hide, ref _to_show);
- foreach (TileMovement? e in _to_move)
+ foreach (TileMovement? e in _to_hide)
{
if (e == null)
assert_not_reached ();
- _move_tile (((!) e).from, ((!) e).to);
+ _prepare_move_tile (((!) e).from, ((!) e).to);
}
- foreach (TileMovement? e in _to_hide)
+ foreach (TileMovement? e in _to_move)
{
if (e == null)
assert_not_reached ();
- _prepare_move_tile (((!) e).from, ((!) e).to);
+ _move_tile (((!) e).from, ((!) e).to);
}
if ((_to_move.size > 0) || (_to_hide.size > 0) || (_to_show.size > 0))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]