src/graph_gui.cpp
changeset 5852 cb3f71b16e1a
parent 5838 9c3129cb019b
child 5860 7fdc9b423ba1
equal deleted inserted replaced
5851:ea65a6afdc43 5852:cb3f71b16e1a
   117 			num_x = gw->num_on_x_axis;
   117 			num_x = gw->num_on_x_axis;
   118 			assert(num_x > 0);
   118 			assert(num_x > 0);
   119 			col_ptr = row_ptr;
   119 			col_ptr = row_ptr;
   120 			do {
   120 			do {
   121 				if (*col_ptr != INVALID_VALUE) {
   121 				if (*col_ptr != INVALID_VALUE) {
   122 					mx = max64(mx, *col_ptr);
   122 					mx = max((uint64)mx, *col_ptr);
   123 				}
   123 				}
   124 			} while (col_ptr++, --num_x);
   124 			} while (col_ptr++, --num_x);
   125 		}
   125 		}
   126 	} while (sel>>=1, row_ptr+=24, --num_dataset);
   126 	} while (sel>>=1, row_ptr+=24, --num_dataset);
   127 
   127 
   304 
   304 
   305 static void SetupGraphDrawerForPlayers(GraphDrawer *gd)
   305 static void SetupGraphDrawerForPlayers(GraphDrawer *gd)
   306 {
   306 {
   307 	const Player* p;
   307 	const Player* p;
   308 	uint excludebits = _legend_excludebits;
   308 	uint excludebits = _legend_excludebits;
   309 	int nums;
   309 	byte nums;
   310 	int mo,yr;
   310 	int mo,yr;
   311 
   311 
   312 	// Exclude the players which aren't valid
   312 	// Exclude the players which aren't valid
   313 	FOR_ALL_PLAYERS(p) {
   313 	FOR_ALL_PLAYERS(p) {
   314 		if (!p->is_active) SETBIT(excludebits,p->index);
   314 		if (!p->is_active) SETBIT(excludebits,p->index);