summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-10-17 17:37:45 +0000
committerrubidium <rubidium@openttd.org>2010-10-17 17:37:45 +0000
commitae20cb4f3dff0f3a9478e918b90ef61279c8b33c (patch)
treecca6bae2b5da57805e9e050e463d835f34a406ef /src/economy.cpp
parentfe44944f326b08e6b005aef8bfcf546467b5b136 (diff)
downloadopenttd-ae20cb4f3dff0f3a9478e918b90ef61279c8b33c.tar.xz
(svn r20970) -Add: company change notification to remote admins (dihedral)
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp3
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);
}