| 45 | bool modprotocol = false; |
| 46 | |
| 47 | void abortconnect() |
| 48 | { |
| 49 | if(!connpeer) return; |
| 50 | clientpassword[0] = '\0'; |
| 51 | connectrole = CR_DEFAULT; |
| 52 | if(connpeer->state!=ENET_PEER_STATE_DISCONNECTED) enet_peer_reset(connpeer); |
| 53 | connpeer = NULL; |
| 54 | } |
| 55 | |
| 56 | void connectserv_(const char *servername, int serverport = 0, const char *password = NULL, int role = CR_DEFAULT) |
| 57 | { |
no test coverage detected