mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30:28 +00:00
(svn r25845) -Add [FS#5756]: [Admin] Send info on bankruptcy quarters also in ADMIN_PACKET_SERVER_COMPANY_INFO (zydeco)
This commit is contained in:
parent
69a0c91d63
commit
189dd2dcce
@ -336,6 +336,11 @@ NetworkRecvStatus ServerNetworkAdminSocketHandler::SendCompanyInfo(const Company
|
|||||||
p->Send_bool (NetworkCompanyIsPassworded(c->index));
|
p->Send_bool (NetworkCompanyIsPassworded(c->index));
|
||||||
p->Send_uint32(c->inaugurated_year);
|
p->Send_uint32(c->inaugurated_year);
|
||||||
p->Send_bool (c->is_ai);
|
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);
|
this->SendPacket(p);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user