diff --git a/docs/rh-log.txt b/docs/rh-log.txt
index 2d5ea9d5d..e6e626f05 100644
--- a/docs/rh-log.txt
+++ b/docs/rh-log.txt
@@ -1,3 +1,7 @@
+September 22, 2006
+- Fixed: FNodeBuilder::ShoveSegBehind needs to check that the result from
+  Heuristic is positive, not just non-zero.
+
 September 20, 2006 (Changes by Graf Zahl)
 - Fixed: Summoned friendly monsters added to the total kill count.
 
diff --git a/src/nodebuild.cpp b/src/nodebuild.cpp
index 71b408da3..d8f534255 100644
--- a/src/nodebuild.cpp
+++ b/src/nodebuild.cpp
@@ -398,7 +398,7 @@ bool FNodeBuilder::ShoveSegBehind (DWORD set, node_t &node, DWORD seg, DWORD mat
 		node.dx = -node.dx;
 		node.dy = -node.dy;
 	}
-	return Heuristic (node, set, false) != 0;
+	return Heuristic (node, set, false) > 0;
 }
 
 // Splitters are chosen to coincide with segs in the given set. To reduce the