| 253 | } |
| 254 | |
| 255 | static void MPConnection_Fail(const cc_string* reason) { |
| 256 | cc_string msg; char msgBuffer[STRING_SIZE * 2]; |
| 257 | String_InitArray(msg, msgBuffer); |
| 258 | net_connecting = false; |
| 259 | |
| 260 | String_Format2(&msg, "Failed to connect to %s:%i", &Server.Address, &Server.Port); |
| 261 | Game_Disconnect(&msg, reason); |
| 262 | OnClose(); |
| 263 | } |
| 264 | |
| 265 | static void MPConnection_FailConnect(cc_result result) { |
| 266 | static const cc_string reason = String_FromConst("You failed to connect to the server. It's probably down!"); |
no test coverage detected