|
|
@ -214,6 +214,7 @@ static void ui_draw_world(UIState *s) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static void ui_draw_vision_maxspeed(UIState *s) { |
|
|
|
static void ui_draw_vision_maxspeed(UIState *s) { |
|
|
|
|
|
|
|
const int SET_SPEED_NA = 255; |
|
|
|
float maxspeed = s->scene.controls_state.getVCruise(); |
|
|
|
float maxspeed = s->scene.controls_state.getVCruise(); |
|
|
|
const bool is_cruise_set = maxspeed != 0 && maxspeed != SET_SPEED_NA; |
|
|
|
const bool is_cruise_set = maxspeed != 0 && maxspeed != SET_SPEED_NA; |
|
|
|
if (is_cruise_set && !s->is_metric) { maxspeed *= 0.6225; } |
|
|
|
if (is_cruise_set && !s->is_metric) { maxspeed *= 0.6225; } |
|
|
|