summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-07-02 19:07:47 +0000
committerfrosch <frosch@openttd.org>2011-07-02 19:07:47 +0000
commit0b33df7a8fbbf8de0f594a657635aa2ff289bdf8 (patch)
tree1ca18338578e56d9e311abd3a481ceb726a4882f /src/economy.cpp
parenta3ede3cea184c98e67ca57ff87dc39dd0082ca29 (diff)
downloadopenttd-0b33df7a8fbbf8de0f594a657635aa2ff289bdf8.tar.xz
(svn r22623) -Cleanup: DoAcquireCompany() does not need to sell shares, ChangeOwnershipOfCompanyItems() already does that and it does it better.
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index a2edd3e99..669569e99 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -1511,16 +1511,6 @@ static void DoAcquireCompany(Company *c)
owner->current_loan += c->current_loan;
}
- Money value = CalculateCompanyValue(c) >> 2;
- Backup<CompanyByte> cur_company(_current_company, FILE_LINE);
- for (int i = 0; i != 4; i++) {
- if (c->share_owners[i] != COMPANY_SPECTATOR) {
- cur_company.Change(c->share_owners[i]);
- SubtractMoneyFromCompany(CommandCost(EXPENSES_OTHER, -value));
- }
- }
- cur_company.Restore();
-
if (c->is_ai) AI::Stop(c->index);
DeleteCompanyWindows(ci);