Splitting road implementation preparation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user