summaryrefslogtreecommitdiff
path: root/src/station_gui.cpp
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2007-03-09 23:26:21 +0000
committerKUDr <kudr@openttd.org>2007-03-09 23:26:21 +0000
commit933c40667868c4a57fc16e96f2cc7b2f1508a329 (patch)
tree8d26ee82fc47973a340b2c379f16971b506dc529 /src/station_gui.cpp
parentfe2b3e18fb5a7f4cbd1c2556ea88b44a2e7b8223 (diff)
downloadopenttd-933c40667868c4a57fc16e96f2cc7b2f1508a329.tar.xz
(svn r9081) -Fix(r9080): UINT32_MAX is undefined on MSVC. Use std::numeric_limits<uint32>::max() instead.
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r--src/station_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp
index a4c4c655d..c7af3a90c 100644
--- a/src/station_gui.cpp
+++ b/src/station_gui.cpp
@@ -269,7 +269,7 @@ static void SortStationsList(plstations_d *sl)
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 @@ static void PlayerStationsWndProc(Window *w, WindowEvent *e)
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);