diff options
author | tron <tron@openttd.org> | 2005-02-23 14:12:32 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-02-23 14:12:32 +0000 |
commit | 9efcfc65afa32c09946308c91d50dd6b9d15d4bc (patch) | |
tree | 585bc6c826133bda69bc435861ae7390804a00d1 | |
parent | f55bde6ee41eacde0fe3aab20b82af4fa99bdfcc (diff) | |
download | openttd-9efcfc65afa32c09946308c91d50dd6b9d15d4bc.tar.xz |
(svn r1911) Put back an "if" i accidently removed in r1898
-rw-r--r-- | economy.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -142,7 +142,8 @@ int UpdateCompanyRatingAndValue(Player *p, bool update) } _score_part[owner][SCORE_VEHICLES] = num; - _score_part[owner][SCORE_MIN_PROFIT] = min_profit; + if (min_profit > 0) + _score_part[owner][SCORE_MIN_PROFIT] = min_profit; } /* Count stations */ |