Forgotten in latest round of changes
This commit is contained in:
parent
d81c632ef2
commit
3767ffd79a
@ -134,11 +134,20 @@ int main (int argc, char *argv[]) {
|
|||||||
if(name == "accessTag") {
|
if(name == "accessTag") {
|
||||||
settings.accessTag = value;
|
settings.accessTag = value;
|
||||||
continue;
|
continue;
|
||||||
|
} else {
|
||||||
|
if(name == "excludeFromGrid") {
|
||||||
|
settings.excludeFromGrid = value;
|
||||||
|
} else {
|
||||||
|
if(name == "defaultSpeed") {
|
||||||
|
settings.defaultSpeed = atoi(value.c_str());
|
||||||
|
settings.speedProfile["default"] = std::make_pair(settings.defaultSpeed, settings.speedProfile.size() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
settings.speedProfile[name] = atoi(value.c_str());
|
}
|
||||||
|
settings.speedProfile[name] = std::make_pair(std::atoi(value.c_str()), settings.speedProfile.size() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch(std::exception& e) {
|
} catch(std::exception& e) {
|
||||||
ERR("caught: " << e.what() );
|
ERR("caught: " << e.what() );
|
||||||
@ -277,8 +286,6 @@ int main (int argc, char *argv[]) {
|
|||||||
|
|
||||||
if(UINT_MAX != restrictionsIT->restriction.fromNode && UINT_MAX != restrictionsIT->restriction.toNode) {
|
if(UINT_MAX != restrictionsIT->restriction.fromNode && UINT_MAX != restrictionsIT->restriction.toNode) {
|
||||||
++usableRestrictionsCounter;
|
++usableRestrictionsCounter;
|
||||||
} else {
|
|
||||||
INFO("Restriction from: " << restrictionsIT->restriction.fromNode << ", to: " << restrictionsIT->restriction.toNode);
|
|
||||||
}
|
}
|
||||||
++restrictionsIT;
|
++restrictionsIT;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user