summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-22 12:48:03 +0000
committertron <tron@openttd.org>2005-02-22 12:48:03 +0000
commit51eef8c5b7b54a64802fc3b833898f0fd75b6a51 (patch)
treeb51c88c837ee8419763f34a5fbfd2ff8969ecaa3 /economy.c
parentf22eab55442cc77096ec1cd713c358c0208f2c62 (diff)
downloadopenttd-51eef8c5b7b54a64802fc3b833898f0fd75b6a51.tar.xz
(svn r1898) Remove some unused macros from macros.h and move some others to more appropriate headers
Diffstat (limited to 'economy.c')
-rw-r--r--economy.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/economy.c b/economy.c
index 66aaff6f2..8e61855a4 100644
--- a/economy.c
+++ b/economy.c
@@ -123,7 +123,7 @@ int UpdateCompanyRatingAndValue(Player *p, bool update)
/* Count vehicles */
{
Vehicle *v;
- int32 min_profit = MAX_INT;
+ int32 min_profit = 0;
uint num = 0;
FOR_ALL_VEHICLES(v) {
@@ -142,9 +142,7 @@ int UpdateCompanyRatingAndValue(Player *p, bool update)
}
_score_part[owner][SCORE_VEHICLES] = num;
-
- if (min_profit != MAX_INT && min_profit > 0)
- _score_part[owner][SCORE_MIN_PROFIT] = min_profit;
+ _score_part[owner][SCORE_MIN_PROFIT] = min_profit;
}
/* Count stations */