diff options
author | planetmaker <planetmaker@openttd.org> | 2013-10-12 17:03:15 +0000 |
---|---|---|
committer | planetmaker <planetmaker@openttd.org> | 2013-10-12 17:03:15 +0000 |
commit | 189dd2dcce0570b6cc88a74e4fc6721aa7c3489f (patch) | |
tree | 8bbc8c6bdbe810007a1f585983fb51ded220ab56 | |
parent | 69a0c91d63df017f99137c4d70d69fa32d3822f9 (diff) | |
download | openttd-189dd2dcce0570b6cc88a74e4fc6721aa7c3489f.tar.xz |
(svn r25845) -Add [FS#5756]: [Admin] Send info on bankruptcy quarters also in ADMIN_PACKET_SERVER_COMPANY_INFO (zydeco)
-rw-r--r-- | src/network/network_admin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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); |