summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-28 09:29:40 +0000
committertruelight <truelight@openttd.org>2004-12-28 09:29:40 +0000
commita5a811f7677ad474d4630d074172872814ae935e (patch)
treefc4ab91ccd06fa35702fae36f1c3719fed8297a5
parent15d188d7f83e3d090ccd8f24807d55dd4dc56946 (diff)
downloadopenttd-a5a811f7677ad474d4630d074172872814ae935e.tar.xz
(svn r1285) -Fix: your loan is now substracted from your company value
-rw-r--r--economy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/economy.c b/economy.c
index 87bfcb551..d5f1661c3 100644
--- a/economy.c
+++ b/economy.c
@@ -105,8 +105,8 @@ int64 CalculateCompanyValue(Player *p) {
}
}
- if (p->player_money > 0)
- value += p->money64; // add real money value
+ if (p->player_money > p->current_loan)
+ value += p->money64 - p->current_loan; // add real money value
return value;
}