From: Mikko Rasa Date: Wed, 29 May 2013 20:32:09 +0000 (+0300) Subject: Report all missing flags in bad_route X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=b447610feefb8b18be29d71d018829ac8e6d1a23;p=r2c2.git Report all missing flags in bad_route This was the intention from the beginning, but somehow else statements slipped in. --- diff --git a/source/libr2c2/route.cpp b/source/libr2c2/route.cpp index e3dfe36..788b235 100644 --- a/source/libr2c2/route.cpp +++ b/source/libr2c2/route.cpp @@ -134,9 +134,9 @@ string bad_route::get_message(RouteValidityMask valid) unsigned i = 0; if(!(valid&1)) reasons[i++] = "unlinked"; - else if(!(valid&2)) + if(!(valid&2)) reasons[i++] = "branching"; - else if(!(valid&4)) + if(!(valid&4)) reasons[i++] = "not smooth"; return join(reasons, reasons+i, ", "); }