1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-16 00:42:45 +01:00

Codechange: always do StringID + offset, instead of offset + StringID

This commit is contained in:
Rubidium
2025-01-02 16:11:57 +01:00
committed by rubidium42
parent 4edde7d6de
commit fedfacf472
4 changed files with 6 additions and 6 deletions

View File

@@ -132,8 +132,8 @@ struct SetDateWindow : Window {
void SetStringParameters(WidgetID widget) const override
{
switch (widget) {
case WID_SD_DAY: SetDParam(0, this->date.day - 1 + STR_DAY_NUMBER_1ST); break;
case WID_SD_MONTH: SetDParam(0, this->date.month + STR_MONTH_JAN); break;
case WID_SD_DAY: SetDParam(0, STR_DAY_NUMBER_1ST + this->date.day - 1); break;
case WID_SD_MONTH: SetDParam(0, STR_MONTH_JAN + this->date.month); break;
case WID_SD_YEAR: SetDParam(0, this->date.year); break;
}
}