From 9ea423a2cbb692fb1dbbe0eaa31309a745a478dd Mon Sep 17 00:00:00 2001 From: Sara Date: Sat, 7 Mar 2026 11:02:15 +0100 Subject: [PATCH] chore: removed untaken branches --- modules/terrain/terrain_modifier.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/terrain/terrain_modifier.cpp b/modules/terrain/terrain_modifier.cpp index df9dfc9c..730f4d1b 100644 --- a/modules/terrain/terrain_modifier.cpp +++ b/modules/terrain/terrain_modifier.cpp @@ -287,12 +287,6 @@ float TerrainModifierPath::evaluate_line(Vector3 a, bool a_end, Vector3 b, bool out_dot = right.normalized().dot(relative_coordinate); out_distance = world_coordinate.distance_to({ closest_on_line.x, closest_on_line.z }); out_percentage = w; - if (false && !a_end) { - w = w < 0 ? 0 : w; - } - if (false && !b_end) { - w = w > 1 ? 1 : w; - } return a.y + (b.y - a.y) * w; }