Fixed site index
This commit is contained in:
@@ -254,7 +254,8 @@ void RoadDiagram::process_diagram(const Dictionary &diagram)
|
||||
ge.edge = ge_data["edge"];
|
||||
site.graphedges.write[j] = ge;
|
||||
}
|
||||
site.index = site_data["index"];
|
||||
site.index = i;
|
||||
site.diagram_index = site_data["index"];
|
||||
site.pos = site_data["pos"];
|
||||
site.polygon = site_data["polygon"];
|
||||
site.vertices = site_data["vertices"];
|
||||
|
||||
@@ -49,7 +49,7 @@ struct map_site {
|
||||
SITE_EMPTY,
|
||||
SITE_MAX
|
||||
};
|
||||
int index;
|
||||
int index, diagram_index;
|
||||
Vector2 pos;
|
||||
Vector<struct graphedge> graphedges;
|
||||
Vector<Vector2> vertices;
|
||||
|
||||
Reference in New Issue
Block a user