File diff r23482:de566f8c088d → r23483:3733e6b8ff17
src/network/network_type.h
Show inline comments
 
@@ -5,26 +5,24 @@
 
 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
 
 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
 
 */
 

	
 
/** @file network_type.h Types used for networking. */
 

	
 
#ifndef NETWORK_TYPE_H
 
#define NETWORK_TYPE_H
 

	
 
#include "core/game.h"
 

	
 
#ifdef ENABLE_NETWORK
 

	
 
/** How many clients can we have */
 
static const uint MAX_CLIENTS = 255;
 

	
 
/**
 
 * The number of slots; must be at least 1 more than MAX_CLIENTS. It must
 
 * furthermore be less than or equal to 256 as client indices (sent over
 
 * the network) are 8 bits. It needs 1 more for the dedicated server.
 
 */
 
static const uint MAX_CLIENT_SLOTS = 256;
 

	
 
/**
 
 * Vehicletypes in the order they are send in info packets.
 
@@ -121,14 +119,13 @@ enum NetworkErrorCode {
 
	NETWORK_ERROR_KICKED,
 
	NETWORK_ERROR_CHEATER,
 
	NETWORK_ERROR_FULL,
 
	NETWORK_ERROR_TOO_MANY_COMMANDS,
 
	NETWORK_ERROR_TIMEOUT_PASSWORD,
 
	NETWORK_ERROR_TIMEOUT_COMPUTER,
 
	NETWORK_ERROR_TIMEOUT_MAP,
 
	NETWORK_ERROR_TIMEOUT_JOIN,
 

	
 
	NETWORK_ERROR_END,
 
};
 

	
 
#endif /* ENABLE_NETWORK */
 
#endif /* NETWORK_TYPE_H */