diff --git a/src/hu_command.c b/src/hu_command.c index cb3bfc3b..981e1832 100644 --- a/src/hu_command.c +++ b/src/hu_command.c @@ -272,7 +272,6 @@ void HU_BuildCommandHistory(sbe_widget_t *widget) { hud_cmd_item_t *hud_cmd = current; - ST_ClearLines(widget); for (int i = 0; i < hud_command_history_size; i++) { ST_AddLine(widget, hud_cmd->buf); diff --git a/src/hu_coordinates.c b/src/hu_coordinates.c index 0ff8ff7d..37c7bf0e 100644 --- a/src/hu_coordinates.c +++ b/src/hu_coordinates.c @@ -184,8 +184,6 @@ void HU_BuildCoordinatesEx(sbe_widget_t *widget, const mobj_t *mo) double magnitude; crange_idx_e color; - ST_ClearLines(widget); - widget->font = widget->default_font; #define LINE_SIZE 60 diff --git a/src/st_widgets.c b/src/st_widgets.c index 67a6e44f..ebed23e8 100644 --- a/src/st_widgets.c +++ b/src/st_widgets.c @@ -662,14 +662,19 @@ static void ForceDoomFont(sbe_widget_t *widget) static void UpdateCoord(sbe_widget_t *widget, player_t *player) { + ST_ClearLines(widget); + + if (strictmode) + { + return; + } + if (hud_player_coords == HUD_WIDGET_ADVANCED) { HU_BuildCoordinatesEx(widget, player->mo); return; } - ST_ClearLines(widget); - if (!WidgetEnabled(hud_player_coords)) { return; @@ -981,6 +986,13 @@ static void UpdateSpeed(sbe_widget_t *widget, player_t *player) static void UpdateCmd(sbe_widget_t *widget) { + ST_ClearLines(widget); + + if (!STRICTMODE(hud_command_history)) + { + return; + } + HU_BuildCommandHistory(widget); }