From 2ac0410767683fb0e6315433f9805712cb85f5bd Mon Sep 17 00:00:00 2001 From: celestar Date: Thu, 11 Jan 2007 11:05:01 +0000 Subject: (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(). --- src/economy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/economy.cpp') diff --git a/src/economy.cpp b/src/economy.cpp index 402fc9cec..452ee746e 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -85,7 +85,7 @@ int64 CalculateCompanyValue(const Player* p) value += p->money64 - p->current_loan; // add real money value - return max64(value, 1); + return max(value, 1LL); } // if update is set to true, the economy is updated with this score -- cgit v1.2.3-54-g00ecf