summaryrefslogtreecommitdiff
path: root/src/timetable_gui.cpp
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2008-06-27 17:46:43 +0000
committerskidd13 <skidd13@openttd.org>2008-06-27 17:46:43 +0000
commit9335a28cb5af25de41d762b70816d2e6b7dc98ee (patch)
tree36a4da60f2a4bc2eec04719a969772bbbe90137d /src/timetable_gui.cpp
parentde862352740ff6ef981855fc10c5a7e2a61c124a (diff)
downloadopenttd-9335a28cb5af25de41d762b70816d2e6b7dc98ee.tar.xz
(svn r13647) -Codechange: replace MAX_UVALUE() for std types with the equivalent constant
Diffstat (limited to 'src/timetable_gui.cpp')
-rw-r--r--src/timetable_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp
index e558124f4..3f255c1aa 100644
--- a/src/timetable_gui.cpp
+++ b/src/timetable_gui.cpp
@@ -261,7 +261,7 @@ struct TimetableWindow : Window {
uint64 time = StrEmpty(str) ? 0 : strtoul(str, NULL, 10);
if (!_settings_client.gui.timetable_in_ticks) time *= DAY_TICKS;
- uint32 p2 = minu(time, MAX_UVALUE(uint16));
+ uint32 p2 = minu(time, UINT16_MAX);
DoCommandP(0, p1, p2, NULL, CMD_CHANGE_TIMETABLE | CMD_MSG(STR_CAN_T_TIMETABLE_VEHICLE));
}