diff src/economy.cpp @ 5601:ca6b459bf488 draft

(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().
author celestar <celestar@openttd.org>
date Thu, 11 Jan 2007 11:05:01 +0000
parents c44c070c5032
children b28586fd0d87
line wrap: on
line diff
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -85,7 +85,7 @@
 
 	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