Skip to content

Commit c9e43a5

Browse files
committed
Add comments
1 parent 67c4eac commit c9e43a5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/road_drawing.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ fn not_drawing_mouse_movement_system(
363363
Collider::Segment(segment) => {
364364
match point_segment_collision(mouse_snapped.0, segment.0, segment.1) {
365365
PointCollision::None => false,
366+
// TODO (I think) this is a hack to check if the collider is an obstacle
366367
_ => layer.0 == 0,
367368
}
368369
}
@@ -462,6 +463,7 @@ fn drawing_mouse_movement_system(
462463
// "Touching" collisions are allowed only if they are the
463464
// start or end of the line we are currently drawing.
464465

466+
// TODO (I think) this is a hack to check if the collider is an obstacle
465467
if layer.0 == 0 {
466468
ok = false;
467469
break;
@@ -515,6 +517,7 @@ fn drawing_mouse_movement_system(
515517
// "Connecting" collisions are allowed only if they are the
516518
// start or end of the line we are currently drawing.
517519

520+
// TODO (I think) this is a hack to check if the collider is an obstacle
518521
if layer.0 == 0 {
519522
ok = false;
520523
break;

0 commit comments

Comments
 (0)