diff options
author | Darkvater <darkvater@openttd.org> | 2005-04-06 09:34:56 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-04-06 09:34:56 +0000 |
commit | 13fc3271f4ce7552b26ebd66fb320e5eed84620b (patch) | |
tree | 23dc73cab1e56ad6a6d7c43612b17df6e369609e | |
parent | 92fe22382a8f0ea362fb35b28b8eb228c1e2e339 (diff) | |
download | openttd-13fc3271f4ce7552b26ebd66fb320e5eed84620b.tar.xz |
(svn r2155) - Fix: Company value was $2 when value more than an int32 could handle (use max64 instead of max)
-rw-r--r-- | economy.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -108,7 +108,7 @@ int64 CalculateCompanyValue(Player *p) { value += p->money64 - p->current_loan; // add real money value - return max(value, 1); + return max64(value, 1); } // if update is set to true, the economy is updated with this score |