diff options
author | rubidium <rubidium@openttd.org> | 2010-10-17 17:37:45 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-10-17 17:37:45 +0000 |
commit | ae20cb4f3dff0f3a9478e918b90ef61279c8b33c (patch) | |
tree | cca6bae2b5da57805e9e050e463d835f34a406ef /src/economy.cpp | |
parent | fe44944f326b08e6b005aef8bfcf546467b5b136 (diff) | |
download | openttd-ae20cb4f3dff0f3a9478e918b90ef61279c8b33c.tar.xz |
(svn r20970) -Add: company change notification to remote admins (dihedral)
Diffstat (limited to 'src/economy.cpp')
-rw-r--r-- | src/economy.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index 9c79d4423..f0530c3da 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -534,6 +534,7 @@ static void CompanyCheckBankrupt(Company *c) CompanyID c_index = c->index; delete c; AI::BroadcastNewEvent(new AIEventCompanyBankrupt(c_index)); + CompanyAdminBankrupt(c_index); } } @@ -1534,6 +1535,7 @@ CommandCost CmdBuyShareInCompany(TileIndex tile, DoCommandFlag flags, uint32 p1, } } SetWindowDirty(WC_COMPANY, target_company); + CompanyAdminUpdate(c); } return cost; } @@ -1568,6 +1570,7 @@ CommandCost CmdSellShareInCompany(TileIndex tile, DoCommandFlag flags, uint32 p1 while (*b != _current_company) b++; // share owners is guaranteed to contain company *b = COMPANY_SPECTATOR; SetWindowDirty(WC_COMPANY, target_company); + CompanyAdminUpdate(c); } return CommandCost(EXPENSES_OTHER, cost); } |