Fixed a bug related to roundabouts. Thanks to twain47 for reporting.

This commit is contained in:
Dennis Luxen 2010-09-16 13:02:38 +00:00
parent a07efcc4b7
commit 6cefcf568b
2 changed files with 3 additions and 2 deletions

View File

@ -217,8 +217,6 @@ _Way _ReadXMLWay( xmlTextReaderPtr& inputReader, Settings& settings ) {
if ( way.direction == _Way::notSure ) {
way.direction = _Way::oneway;
}
if ( way.maximumSpeed == -1 )
way.maximumSpeed = 10;
way.usefull = true;
}
} else if ( xmlStrEqual( k, ( const xmlChar* ) "route" ) == 1 ) {

View File

@ -107,6 +107,9 @@ int main (int argc, char *argv[])
assert(way.type > -1 || way.maximumSpeed != -1);
assert(path.size()>0);
if(way.maximumSpeed == -1)
way.maximumSpeed = settings.speedProfile.speed[way.type];
for(vector< NodeID >::size_type n = 0; n < path.size()-1; n++)
{
_Edge e;