summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-10-21 09:15:57 +0000
committerfrosch <frosch@openttd.org>2012-10-21 09:15:57 +0000
commit50806b5b3c6e28ba9d8670775e33994039c33fbc (patch)
treed148cec8c434ed2a315d8024be54f875ed08718c /src/network
parentf2e94237fc6dbca89f06de0befd44c2e9faf3b72 (diff)
downloadopenttd-50806b5b3c6e28ba9d8670775e33994039c33fbc.tar.xz
(svn r24620) -Fix (r24619): Keep admin port API compatibility.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_admin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_admin.cpp b/src/network/network_admin.cpp
index 359b2a58b..45ceaa793 100644
--- a/src/network/network_admin.cpp
+++ b/src/network/network_admin.cpp
@@ -365,7 +365,7 @@ NetworkRecvStatus ServerNetworkAdminSocketHandler::SendCompanyUpdate(const Compa
p->Send_string(manager_name);
p->Send_uint8 (c->colour);
p->Send_bool (NetworkCompanyIsPassworded(c->index));
- p->Send_uint8 (c->months_of_bankruptcy);
+ 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]);