aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts/drawing.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts/drawing.gd')
-rw-r--r--Scripts/drawing.gd3
1 files changed, 2 insertions, 1 deletions
diff --git a/Scripts/drawing.gd b/Scripts/drawing.gd
index 61896f9..c45196b 100644
--- a/Scripts/drawing.gd
+++ b/Scripts/drawing.gd
@@ -2,7 +2,7 @@ extends Node
var drawing = false
-@onready var line: Line2D = $TrackLine
+@onready var line = $Road
@onready var path: Path2D = $TrackPath
func _ready():
@@ -16,6 +16,7 @@ func start_drawing():
func _end_drawing():
drawing = false
+ line.simplify()
owner.set_driving(true)