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 | 1b43dec1d6cb5363b9de63b1646f7952abf5fa8a (patch) | |
tree | 23dc73cab1e56ad6a6d7c43612b17df6e369609e | |
parent | d08dfa84a4c559c97368eb5a7b6174c6c788f200 (diff) | |
download | openttd-1b43dec1d6cb5363b9de63b1646f7952abf5fa8a.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 |