summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-23 14:12:32 +0000
committertron <tron@openttd.org>2005-02-23 14:12:32 +0000
commit9efcfc65afa32c09946308c91d50dd6b9d15d4bc (patch)
tree585bc6c826133bda69bc435861ae7390804a00d1
parentf55bde6ee41eacde0fe3aab20b82af4fa99bdfcc (diff)
downloadopenttd-9efcfc65afa32c09946308c91d50dd6b9d15d4bc.tar.xz
(svn r1911) Put back an "if" i accidently removed in r1898
-rw-r--r--economy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/economy.c b/economy.c
index 8e61855a4..3e5476d8e 100644
--- a/economy.c
+++ b/economy.c
@@ -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 */