(svn r8055) -Codechange: Replace the different max, dmax, maxu whatever macros by a simple template function max(), that requires two arguments of the same type. While I'm at it change a variable called "max" to "maxval" in a function that calls max().

This commit is contained in:
celestar
2007-01-11 11:05:01 +00:00
parent 0677847569
commit 08de6b082a
19 changed files with 40 additions and 39 deletions

View File

@@ -119,7 +119,7 @@ static void DrawGraph(const GraphDrawer *gw)
col_ptr = row_ptr;
do {
if (*col_ptr != INVALID_VALUE) {
mx = max64(mx, *col_ptr);
mx = max((uint64)mx, *col_ptr);
}
} while (col_ptr++, --num_x);
}
@@ -306,7 +306,7 @@ static void SetupGraphDrawerForPlayers(GraphDrawer *gd)
{
const Player* p;
uint excludebits = _legend_excludebits;
int nums;
byte nums;
int mo,yr;
// Exclude the players which aren't valid