Fixed a bug related to roundabouts. Thanks to twain47 for reporting.
This commit is contained in:
parent
a07efcc4b7
commit
6cefcf568b
@ -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 ) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user