Mercurial > hg > openttd
diff src/economy.cpp @ 16269:f1578c16487c draft
(svn r20970) -Add: company change notification to remote admins (dihedral)
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 17 Oct 2010 17:37:45 +0000 (2010-10-17) |
parents | 5677428dfc6d |
children | 89526f638fa4 |
line wrap: on
line diff
--- a/src/economy.cpp +++ b/src/economy.cpp @@ -534,6 +534,7 @@ CompanyID c_index = c->index; delete c; AI::BroadcastNewEvent(new AIEventCompanyBankrupt(c_index)); + CompanyAdminBankrupt(c_index); } } @@ -1534,6 +1535,7 @@ } } SetWindowDirty(WC_COMPANY, target_company); + CompanyAdminUpdate(c); } return cost; } @@ -1568,6 +1570,7 @@ 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); }