equal
deleted
inserted
replaced
112 // Functions to help NetworkRecv_Packet/NetworkSend_Packet a bit |
112 // Functions to help NetworkRecv_Packet/NetworkSend_Packet a bit |
113 // A socket can make errors. When that happens |
113 // A socket can make errors. When that happens |
114 // this handles what to do. |
114 // this handles what to do. |
115 // For clients: close connection and drop back to main-menu |
115 // For clients: close connection and drop back to main-menu |
116 // For servers: close connection and that is it |
116 // For servers: close connection and that is it |
117 NetworkRecvStatus CloseConnection(NetworkClientState *cs) |
117 static NetworkRecvStatus CloseConnection(NetworkClientState *cs) |
118 { |
118 { |
119 NetworkCloseClient(cs); |
119 NetworkCloseClient(cs); |
120 |
120 |
121 // Clients drop back to the main menu |
121 // Clients drop back to the main menu |
122 if (!_network_server) { |
122 if (!_network_server) { |