From fcc0c2239f9825233714a1a769aa7463f825d8f0 Mon Sep 17 00:00:00 2001 From: thorkill Date: Fri, 24 Apr 2015 17:47:04 +0200 Subject: [PATCH] Want to test old version with latest patches. Revert "Temporal fix for broken hopes." This reverts commit df42bc362151669444ac007c6f5120b4a265f959. --- src/graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graph.c b/src/graph.c index 46f4bc98..49161c16 100644 --- a/src/graph.c +++ b/src/graph.c @@ -178,7 +178,7 @@ static void sssp_bfs(void) { // Only update nexthop if it doesn't increase the path length - if(!e->to->status.visited || (e->to->distance == n->distance + 1 && e->weight <= e->to->prevedge->weight)) + if(!e->to->status.visited || (e->to->distance == n->distance + 1 && e->weight >= e->to->prevedge->weight)) e->to->nexthop = (n->nexthop == myself) ? e->to : n->nexthop; e->to->status.visited = true;