algorithm.c
changeset 17 7c1e68c17c0e
parent 16 fe078fb2e8b4
child 21 e73048967870
--- a/algorithm.c	Sun May 07 15:28:39 2006 +0200
+++ b/algorithm.c	Sun May 07 16:28:04 2006 +0200
@@ -399,7 +399,7 @@
 		is_not_set_free = TRUE;
 		for(d=0; d<4; d++)
 		{
-			if(m->box_deps[i].dep_dir[d] > 0)
+			if(m->box_deps[i].dep_dir[d] >= 0)
 			{
 				if (!dep.box[i][m->box_deps[i].dep_dir[d]])
 				{
@@ -466,7 +466,7 @@
 	for(i=0; i<new_free.n; i++)
 	{
 		free.box[i] = new_free.box[i];
-		free.box_is_free[i] = TRUE;
+		free.box_is_free[new_free.box[i]] = TRUE;
 	}
 
 	/* KACXO-loop  */