Update src/road/road.zig
appended todo to a comment so it'll be easier for me to see in the future that this issue needs fixing
This commit is contained in:
parent
a23921bc98
commit
4fe62d06d1
@ -19,7 +19,7 @@ pub const Road = struct {
|
|||||||
pub fn confirmRoad(self: *Road, pos: rl.Vector2) void {
|
pub fn confirmRoad(self: *Road, pos: rl.Vector2) void {
|
||||||
self.end_point = pos;
|
self.end_point = pos;
|
||||||
}
|
}
|
||||||
// lets make each road state carry the color with it instead of this
|
// todo lets make each road state carry the color with it instead of this
|
||||||
pub fn setColor(self: *Road, road_state: str.RoadState) void {
|
pub fn setColor(self: *Road, road_state: str.RoadState) void {
|
||||||
self.color = switch (road_state) {
|
self.color = switch (road_state) {
|
||||||
.valid => .black,
|
.valid => .black,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user