From 70c7fbd90eb0ace75d759725ba4d0085283f152c Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 20 Jan 2012 20:18:19 +0000 Subject: (svn r23826) -Fix [FS#4972]: the detailed performance rating window showed the cargo count of the current quarter instead of the last quarter like the tooltip says --- src/network/network_admin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/network') diff --git a/src/network/network_admin.cpp b/src/network/network_admin.cpp index 592e26b3a..9fe7c4f77 100644 --- a/src/network/network_admin.cpp +++ b/src/network/network_admin.cpp @@ -412,13 +412,13 @@ NetworkRecvStatus ServerNetworkAdminSocketHandler::SendCompanyEconomy() p->Send_uint64(company->money); p->Send_uint64(company->current_loan); p->Send_uint64(income); - p->Send_uint16(company->cur_economy.delivered_cargo); + p->Send_uint16(min(UINT16_MAX, company->cur_economy.delivered_cargo.GetSum())); /* Send stats for the last 2 quarters. */ for (uint i = 0; i < 2; i++) { p->Send_uint64(company->old_economy[i].company_value); p->Send_uint16(company->old_economy[i].performance_history); - p->Send_uint16(company->old_economy[i].delivered_cargo); + p->Send_uint16(min(UINT16_MAX, company->old_economy[i].delivered_cargo.GetSum())); } this->SendPacket(p); -- cgit v1.2.3-54-g00ecf