algorithm.c
changeset 25 b37843173279
parent 10 9148590f009d
child 26 95fccfcbd04c
--- a/algorithm.c	Sun May 07 13:33:25 2006 +0200
+++ b/algorithm.c	Sun May 07 13:34:25 2006 +0200
@@ -453,6 +453,8 @@
 		if (m->NumPlatforms == m->NumBoxesInPlatform)
 		{
 			PrintMove(movements[i]);
+			actual_map = &maps[depth+1];
+			show_percent_and_map();
 			return 0;
 		}
 
@@ -470,7 +472,7 @@
 			depth_to_show = depth;
 			actual_map = &maps[depth];
 #ifdef DEBUG		/* to be out */
-			show_percent_callback(0);
+			show_percent_and_map();
 #endif
 	
 		}
@@ -483,6 +485,8 @@
 					total_percent + next_percent*i) == 0)
 				{
 					PrintMove(movements[i]);
+					actual_map = &maps[depth+1];
+					show_percent_and_map();
 					return 0;
 				}
 			}