summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-15 08:58:31 +0000
committertron <tron@openttd.org>2005-01-15 08:58:31 +0000
commit3279a7c9a26242f5f0a8e4b41ae6e2d9e24ee169 (patch)
treee70312993e66c5b848feb30831527cca401c08f8 /economy.c
parent7f7c6297f7bb6bb225741773a5438a916a91da08 (diff)
downloadopenttd-3279a7c9a26242f5f0a8e4b41ae6e2d9e24ee169.tar.xz
(svn r1520) Trim 134 (!) lines with trailing whitespace ):
Diffstat (limited to 'economy.c')
-rw-r--r--economy.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/economy.c b/economy.c
index 018a5892c..f98d3f487 100644
--- a/economy.c
+++ b/economy.c
@@ -106,7 +106,7 @@ int64 CalculateCompanyValue(Player *p) {
}
value += p->money64 - p->current_loan; // add real money value
-
+
return max(value, 1);
}
@@ -1532,8 +1532,8 @@ int32 CmdBuyShareInCompany(int x, int y, uint32 flags, uint32 p1, uint32 p2)
SET_EXPENSES_TYPE(EXPENSES_OTHER);
p = DEREF_PLAYER(p1);
-
-
+
+
if (_cur_year - p->inaugurated_year < 6) {
_error_message = STR_7080_PROTECTED;
return CMD_ERROR;
@@ -1550,7 +1550,7 @@ int32 CmdBuyShareInCompany(int x, int y, uint32 flags, uint32 p1, uint32 p2)
/* We can not buy out a real player in networking */
if (GetAmountOwnedBy(p, OWNER_SPECTATOR) == 1 && !p->is_ai)
return 0;
-
+
cost = CalculateCompanyValue(p) >> 2;
if (flags & DC_EXEC) {
b = p->share_owners;
@@ -1581,7 +1581,7 @@ int32 CmdSellShareInCompany(int x, int y, uint32 flags, uint32 p1, uint32 p2)
/* Check if selling shares is allowed (protection against modified clients */
if (!_patches.allow_shares)
return CMD_ERROR;
-
+
/* Those lines are here for network-protection (clients can be slow) */
if (GetAmountOwnedBy(p, _current_player) == 0)
return 0;