Changeset - r6272:d79252023eed
[Not reviewed]
master
0 2 0
KUDr - 17 years ago 2007-03-09 23:26:21
kudr@openttd.org
(svn r9081) -Fix(r9080): UINT32_MAX is undefined on MSVC. Use std::numeric_limits<uint32>::max() instead.
2 files changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/station_gui.cpp
Show inline comments
 
@@ -269,7 +269,7 @@ static void SortStationsList(plstations_
 
	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
 

	
 
	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);
src/stdafx.h
Show inline comments
 
@@ -20,6 +20,8 @@
 
# define INT64_MAX 9223372036854775807LL
 
#endif
 

	
 
#include <limits>
 

	
 
#include <cstdio>
 
#include <cstddef>
 
#include <cstring>
0 comments (0 inline, 0 general)