chore: removed untaken branches

This commit is contained in:
Sara Gerretsen 2026-03-07 11:02:15 +01:00
parent 078200c3f2
commit 9ea423a2cb

View file

@ -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;
}