src/network/core/tcp.c
branchcustombridgeheads
changeset 5648 1608018c5ff2
parent 5643 3778051e8095
equal deleted inserted replaced
5647:cbde85c8c878 5648:1608018c5ff2
     7 #include "../../openttd.h"
     7 #include "../../openttd.h"
     8 #include "../../variables.h"
     8 #include "../../variables.h"
     9 #include "table/strings.h"
     9 #include "table/strings.h"
    10 #include "../../functions.h"
    10 #include "../../functions.h"
    11 
    11 
    12 #include "os_abstraction.h"
    12 #include "../network_data.h"
    13 #include "config.h"
       
    14 #include "packet.h"
    13 #include "packet.h"
    15 #include "../network_data.h"
       
    16 #include "tcp.h"
    14 #include "tcp.h"
    17 
    15 
    18 /**
    16 /**
    19  * @file tcp.c Basic functions to receive and send TCP packets.
    17  * @file tcp.c Basic functions to receive and send TCP packets.
    20  */
    18  */
    46 /**
    44 /**
    47  * Whether the client has quit or not (used in packet.c)
    45  * Whether the client has quit or not (used in packet.c)
    48  * @param cs the client to check
    46  * @param cs the client to check
    49  * @return true if the client has quit
    47  * @return true if the client has quit
    50  */
    48  */
    51 bool HasClientQuit(NetworkClientState *cs)
    49 bool HasClientQuit(const NetworkClientState *cs)
    52 {
    50 {
    53 	return cs->has_quit;
    51 	return cs->has_quit;
    54 }
    52 }
    55 
    53 
    56 /**
    54 /**