good check

This commit is contained in:
机械小鸽 2025-03-03 16:01:09 +08:00 committed by GitHub
parent ad0a9e38dd
commit a31c3dcb88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2207,9 +2207,11 @@ public:
int gap = params.getInt("LongitudinalPersonality") + 1; int gap = params.getInt("LongitudinalPersonality") + 1;
dx = bx + 220; dx = bx + 220;
dy = by + 77; dy = by + 77;
sprintf(gap_str, "%d", gap); //sprintf(gap_str, "%d", gap);
ui_draw_text(s, dx, dy, gap_str, 40, COLOR_WHITE, BOLD); //ui_draw_text(s, dx, dy, gap_str, 40, COLOR_WHITE, BOLD);
if (gap_last != gap) ui_draw_text_a(s, dx, dy, gap_str, 40, COLOR_WHITE, BOLD); sprintf(gap_str, "%.0f", v_cruise * 3.6); // 将 m/s 转换为 km/h
ui_draw_text(s, dx, dy, gap_str, 40, COLOR_WHITE, BOLD);// 移除动画效果相关代码
//if (gap_last != gap) ui_draw_text_a(s, dx, dy, gap_str, 40, COLOR_WHITE, BOLD);
gap_last = gap; gap_last = gap;
dx = bx + 300 - 30; dx = bx + 300 - 30;