Codechange: Remove various COMMA strings.

This commit is contained in:
Peter Nelson
2023-04-25 09:45:05 +01:00
committed by PeterN
parent 5e185d5328
commit e18f688db5
9 changed files with 18 additions and 24 deletions

View File

@@ -1159,7 +1159,7 @@ struct PerformanceRatingDetailWindow : Window {
score_info_width = std::max(score_info_width, GetStringBoundingBox(STR_PERFORMANCE_DETAIL_VEHICLES + i).width);
}
SetDParamMaxValue(0, 1000);
score_info_width += GetStringBoundingBox(STR_BLACK_COMMA).width + WidgetDimensions::scaled.hsep_wide;
score_info_width += GetStringBoundingBox(STR_JUST_COMMA).width + WidgetDimensions::scaled.hsep_wide;
SetDParamMaxValue(0, 100);
this->bar_width = GetStringBoundingBox(STR_PERFORMANCE_DETAIL_PERCENT).width + WidgetDimensions::scaled.hsep_indent * 2; // Wide bars!
@@ -1245,7 +1245,7 @@ struct PerformanceRatingDetailWindow : Window {
/* Draw the score */
SetDParam(0, score);
DrawString(this->score_info_left, this->score_info_right, text_top, STR_BLACK_COMMA, TC_FROMSTRING, SA_RIGHT);
DrawString(this->score_info_left, this->score_info_right, text_top, STR_JUST_COMMA, TC_BLACK, SA_RIGHT);
/* Calculate the %-bar */
uint x = Clamp<int64>(val, 0, needed) * this->bar_width / needed;