Splitting road implementation preparation

This commit is contained in:
2026-05-01 07:49:07 +02:00
parent 5040bbbe47
commit 680e07c976
6 changed files with 105 additions and 23 deletions

View File

@@ -2,6 +2,7 @@ const rl = @import("raylib");
const c = @import("../common/constants.zig");
const st = @import("../common/structures.zig");
const ut = @import("../common/utils.zig");
const Node = @import("node.zig").Node;
pub const Road = struct {
@@ -20,7 +21,7 @@ pub const Road = struct {
.length = 0,
};
road.length = road.calculate_length();
road.length = ut.calculate_length(start.pos, end.pos);
return road;
}