This commit is contained in:
Your Name
2024-05-18 03:05:48 -05:00
parent 691036b9b9
commit 77b611546a
2 changed files with 9 additions and 6 deletions

View File

@@ -117,11 +117,13 @@ void update_model(UIState *s,
// update path
float path;
if (paramsMemory.getInt("no_lat_lane_change")) {
path = LANE_CHANGE_NO_LAT_PATH_WIDTH / 20; // Release: better calc for EU users
path = (float)LANE_CHANGE_NO_LAT_PATH_WIDTH / 20; // Release: better calc for EU users
} else {
path = CENTER_LANE_WIDTH / 20; // Release: better calc for EU users
path = (float)CENTER_LANE_WIDTH / 20; // Release: better calc for EU users
}
path = scene.path_width;
auto lead_count = model.getLeadsV3().size();
if (lead_count > 0) {
auto lead_one = model.getLeadsV3()[0];