From 493b581dfa5a06134f524fe026a2fde5c4a83af5 Mon Sep 17 00:00:00 2001 From: Mario Kilies Date: Sun, 16 Jan 2011 02:45:16 +0100 Subject: Renamed receive buffer offset macros. Changed argument data types of client_recv and server_recv. --- src/net_server.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/net_server.c') diff --git a/src/net_server.c b/src/net_server.c index edafed2..f55c558 100644 --- a/src/net_server.c +++ b/src/net_server.c @@ -133,9 +133,9 @@ void server_start_game(int* clients, const uint8_t clientcount, const player_lis printf("server_start_game: Out of memory\n"); exit(EXIT_FAILURE); } - buf[INDEX_TYPE] = msg_type_start_game; - buf[INDEX_LEN] = buflen; - pos = INDEX_PAYLOAD; + buf[NET_MSG_OFFSET_TYPE] = msg_type_start_game; + buf[NET_MSG_OFFSET_PAYLOAD_LENGTH] = buflen; + pos = NET_MSG_OFFSET_PAYLOAD; buf[pos++] = players->count; // copy usernames with length to buffer for(int i=0; i