Files
@ r12648:24c912bd53f6
Branch filter:
Location: cpp/openttd-patchpack/source/src/network/network_base.h - annotation
r12648:24c912bd53f6
1.5 KiB
text/x-c
(svn r17113) -Change [FS#265][FS#2094][FS#2589]: apply the subsidy when subsidy's destination is in station's catchment area and cargo packets originate from subsidy's source
-Change [FS#1134]: subsidies aren't bound to stations after awarding anymore, they still apply to town or industry, no matter what station is used for loading and unloading. Awarded subsidies from older savegames are lost
-Change [NoAI]: due to these changes, AISubsidy::GetSource and AISubsidy::GetDestination now return STATION_INVALID for awarded subsidies
-Change [FS#1134]: subsidies aren't bound to stations after awarding anymore, they still apply to town or industry, no matter what station is used for loading and unloading. Awarded subsidies from older savegames are lost
-Change [NoAI]: due to these changes, AISubsidy::GetSource and AISubsidy::GetDestination now return STATION_INVALID for awarded subsidies
r10468:83faa36bfb14 r10468:83faa36bfb14 r10468:83faa36bfb14 r10468:83faa36bfb14 r10468:83faa36bfb14 r10468:83faa36bfb14 r10468:83faa36bfb14 r10468:83faa36bfb14 r10468:83faa36bfb14 r10468:83faa36bfb14 r11969:3526c3cc75dc r10468:83faa36bfb14 r11967:df0600d2c7e7 r11967:df0600d2c7e7 r10475:42f4d4bdb35c r11967:df0600d2c7e7 r10468:83faa36bfb14 r10468:83faa36bfb14 r10468:83faa36bfb14 r10468:83faa36bfb14 r11573:e8da175efbb5 r10468:83faa36bfb14 r10468:83faa36bfb14 r10468:83faa36bfb14 r10475:42f4d4bdb35c r10475:42f4d4bdb35c r10468:83faa36bfb14 r10468:83faa36bfb14 r11966:921bea0ca112 r11966:921bea0ca112 r10468:83faa36bfb14 r10468:83faa36bfb14 r10468:83faa36bfb14 | /* $Id$ */
/** @file network_base.h Base core network types and some helper functions to access them. */
#ifndef NETWORK_BASE_H
#define NETWORK_BASE_H
#ifdef ENABLE_NETWORK
#include "network_type.h"
#include "../core/pool_type.hpp"
typedef Pool<NetworkClientInfo, ClientIndex, 8, MAX_CLIENT_SLOTS> NetworkClientInfoPool;
extern NetworkClientInfoPool _networkclientinfo_pool;
struct NetworkClientInfo : NetworkClientInfoPool::PoolItem<&_networkclientinfo_pool> {
ClientID client_id; ///< Client identifier (same as ClientState->client_id)
char client_name[NETWORK_CLIENT_NAME_LENGTH]; ///< Name of the client
byte client_lang; ///< The language of the client
CompanyID client_playas; ///< As which company is this client playing (CompanyID)
NetworkAddress client_address; ///< IP-address of the client (so he can be banned)
Date join_date; ///< Gamedate the client has joined
char unique_id[NETWORK_UNIQUE_ID_LENGTH]; ///< Every play sends an unique id so we can indentify him
NetworkClientInfo(ClientID client_id = INVALID_CLIENT_ID) : client_id(client_id) {}
~NetworkClientInfo() { client_id = INVALID_CLIENT_ID; }
};
#define FOR_ALL_CLIENT_INFOS_FROM(var, start) FOR_ALL_ITEMS_FROM(NetworkClientInfo, clientinfo_index, var, start)
#define FOR_ALL_CLIENT_INFOS(var) FOR_ALL_CLIENT_INFOS_FROM(var, 0)
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_BASE_H */
|