From 9139a6c858a6af95e2fd9a1abacec520c62a8bd0 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 5 Dec 2010 22:21:13 +0000 Subject: (svn r21405) -Codechange: prepare sending of company information in the UDP packet for longer company names (in bytes), by truncating the names if needed --- src/network/core/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/network/core/core.h') diff --git a/src/network/core/core.h b/src/network/core/core.h index 932199a9c..10df20af7 100644 --- a/src/network/core/core.h +++ b/src/network/core/core.h @@ -76,7 +76,7 @@ public: void SendGRFIdentifier(Packet *p, const GRFIdentifier *grf); void ReceiveGRFIdentifier(Packet *p, GRFIdentifier *grf); - void SendCompanyInformation(Packet *p, const struct Company *c, const struct NetworkCompanyStats *stats); + void SendCompanyInformation(Packet *p, const struct Company *c, const struct NetworkCompanyStats *stats, uint max_len = NETWORK_COMPANY_NAME_LENGTH); }; #endif /* ENABLE_NETWORK */ -- cgit v1.2.3-54-g00ecf