From 189dd2dcce0570b6cc88a74e4fc6721aa7c3489f Mon Sep 17 00:00:00 2001 From: planetmaker Date: Sat, 12 Oct 2013 17:03:15 +0000 Subject: (svn r25845) -Add [FS#5756]: [Admin] Send info on bankruptcy quarters also in ADMIN_PACKET_SERVER_COMPANY_INFO (zydeco) --- src/network/network_admin.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/network') diff --git a/src/network/network_admin.cpp b/src/network/network_admin.cpp index 0c060b755..0327bf366 100644 --- a/src/network/network_admin.cpp +++ b/src/network/network_admin.cpp @@ -336,6 +336,11 @@ NetworkRecvStatus ServerNetworkAdminSocketHandler::SendCompanyInfo(const Company p->Send_bool (NetworkCompanyIsPassworded(c->index)); p->Send_uint32(c->inaugurated_year); p->Send_bool (c->is_ai); + p->Send_uint8 (CeilDiv(c->months_of_bankruptcy, 3)); // send as quarters_of_bankruptcy + + for (size_t i = 0; i < lengthof(c->share_owners); i++) { + p->Send_uint8(c->share_owners[i]); + } this->SendPacket(p); -- cgit v1.2.3-70-g09d2