Compare commits
3 Commits
fdf672de4b
...
base-road-
| Author | SHA1 | Date | |
|---|---|---|---|
| 3274692631 | |||
| 1558d5f57c | |||
| c02b2a5121 |
@@ -157,14 +157,6 @@ pub const Simulator = struct {
|
|||||||
std.debug.panic("Intersection selection failure: {}\n", .{err});
|
std.debug.panic("Intersection selection failure: {}\n", .{err});
|
||||||
};
|
};
|
||||||
defer self.allocator.free(intersections);
|
defer self.allocator.free(intersections);
|
||||||
|
|
||||||
// DEBUG TODO REMOVE
|
|
||||||
std.debug.print("Displaying intersection position and the intersected road:\n", .{});
|
|
||||||
for (0..intersections.len) |i| {
|
|
||||||
const int = intersections[i];
|
|
||||||
std.debug.print("Road ID={d} Pos: ({d}, {d})\n", .{int.road.id, int.pos.x, int.pos.y});
|
|
||||||
}
|
|
||||||
|
|
||||||
self.splitRoadsByIntersections(intersections, temp, cur_node);
|
self.splitRoadsByIntersections(intersections, temp, cur_node);
|
||||||
|
|
||||||
self.node_man.temp_node = if (self.auto_continue) cur_node else null;
|
self.node_man.temp_node = if (self.auto_continue) cur_node else null;
|
||||||
|
|||||||
Reference in New Issue
Block a user