Mercurial > hg > openttd
changeset 6272:039bee52a5d4 draft
(svn r9081) -Fix(r9080): UINT32_MAX is undefined on MSVC. Use std::numeric_limits<uint32>::max() instead.
author | KUDr <KUDr@openttd.org> |
---|---|
date | Fri, 09 Mar 2007 23:26:21 +0000 |
parents | 56a8bb763a87 |
children | 442b0e075488 |
files | src/station_gui.cpp src/stdafx.h |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -269,7 +269,7 @@ sl->flags &= ~SL_RESORT; } -static uint32 _cargo_filter = UINT32_MAX; +static uint32 _cargo_filter = std::numeric_limits<uint32>::max(); static void PlayerStationsWndProc(Window *w, WindowEvent *e) { @@ -282,7 +282,7 @@ switch (e->event) { case WE_CREATE: /* set up resort timer */ - if (_cargo_filter == UINT32_MAX) _cargo_filter = _cargo_mask; + if (_cargo_filter == std::numeric_limits<uint32>::max()) _cargo_filter = _cargo_mask; for (uint i = 0; i < 5; i++) { if (HASBIT(facilities, i)) LowerWindowWidget(w, i + STATIONLIST_WIDGET_TRAIN);