Additional fixes and todo plans

This commit is contained in:
2026-04-28 22:50:04 +02:00
parent ccbf7344b5
commit 37e2f36ae9
5 changed files with 29 additions and 8 deletions

View File

@@ -31,7 +31,6 @@ pub const Node = struct {
return rl.checkCollisionPointCircle(pos, self.pos, c.NODE_SNAP_RADIUS);
}
pub fn referenceRoad(self: *Node, allocator: std.mem.Allocator, road_to_add: *Road) !void {
// Note the road_to_add pointer must be one from the roads list as otherwise the pointer is dangling one
for (self.roads.items) |road| {