From 16b96a515c73c6e3a9d89406d7c5fea030dc72a5 Mon Sep 17 00:00:00 2001 From: Jeremy Rand Date: Wed, 23 Jul 2014 16:14:11 -0500 Subject: [PATCH] Fix bug where new tiles were being added even when no tiles were moved --- game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game.c b/game.c index ff8d087..6bf26cc 100644 --- a/game.c +++ b/game.c @@ -148,7 +148,7 @@ void slideInDirection(tDir dir) } for ( ; ((pos >= 0) && (pos < NUM_TILES)); pos += incr) { - if (gTileValues[pos] == BLOCKED_TILE_VALUE) + if (gTileValues[pos] <= 0) continue; destPos = nextPosInDir(pos, dir); if (destPos == pos)