Update to 1.8.0

This commit is contained in:
Pavel Stupnikov
2018-04-06 22:08:52 +03:00
224 changed files with 2404 additions and 1791 deletions

View File

@@ -1,4 +1,4 @@
/* $Id: network_client.cpp 27653 2016-09-04 16:06:50Z alberth $ */
/* $Id: network_client.cpp 27893 2017-08-13 18:38:42Z frosch $ */
/*
* This file is part of OpenTTD.
@@ -1008,7 +1008,8 @@ NetworkRecvStatus ClientNetworkGameSocketHandler::Receive_SERVER_CHAT(Packet *p)
/* For speaking to company or giving money, we need the company-name */
case NETWORK_ACTION_GIVE_MONEY:
if (!Company::IsValidID(ci_to->client_playas)) return NETWORK_RECV_STATUS_OKAY;
/* FALL THROUGH */
FALLTHROUGH;
case NETWORK_ACTION_CHAT_COMPANY: {
StringID str = Company::IsValidID(ci_to->client_playas) ? STR_COMPANY_NAME : STR_NETWORK_SPECTATORS;
SetDParam(0, ci_to->client_playas);