Replace DATE_UNIT_SIZE macro with a function

This commit is contained in:
Jonathan G Rennison
2024-02-07 20:12:39 +00:00
parent d39236d50c
commit d456f4a3a5
9 changed files with 26 additions and 16 deletions

View File

@@ -2591,7 +2591,7 @@ public:
case OCV_TIMETABLE:
value = order->GetXData();
if (!_settings_client.gui.timetable_in_ticks) value /= DATE_UNIT_SIZE;
if (!_settings_client.gui.timetable_in_ticks) value /= TimetableDisplayUnitSize();
break;
case OCV_CARGO_WAITING_AMOUNT:
@@ -3191,7 +3191,7 @@ public:
case OCV_TIMETABLE:
value = order->GetXData();
if (!_settings_client.gui.timetable_in_ticks) {
value /= DATE_UNIT_SIZE;
value /= TimetableDisplayUnitSize();
charset_filter = CS_NUMERAL_DECIMAL;
}
break;