Made accessor for lines

This commit is contained in:
2024-10-02 20:49:41 +03:00
parent 521ae37202
commit 794857209d
10 changed files with 417 additions and 308 deletions

View File

@@ -63,14 +63,14 @@ struct RoadLinesProcessing {
List<String>::Element *e = keys.front();
while (e) {
const String &key = e->get();
if (rld->lines[key].indices.size() < 2) {
if (rld->lines(key).indices.size() < 2) {
e = e->next();
continue;
}
for (i = 0; i < (int)rld->lines[key].indices.size() - 1;
for (i = 0; i < (int)rld->lines(key).indices.size() - 1;
i++) {
int idx1 = rld->lines[key].indices[i];
int idx2 = rld->lines[key].indices[i + 1];
int idx1 = rld->lines(key).indices[i];
int idx2 = rld->lines(key).indices[i + 1];
if (edges.find(idx1) == edges.end()) {
struct edgedata ed;
ed.neighbors.clear();