mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed ticket #486: Rcon doesn't work after map change
This commit is contained in:
parent
79f9fb41d4
commit
b39e58ce26
|
@ -566,7 +566,6 @@ static void reset_client(int cid)
|
|||
clients[cid].last_acked_snapshot = -1;
|
||||
clients[cid].snap_rate = SRVCLIENT_SNAPRATE_INIT;
|
||||
clients[cid].score = 0;
|
||||
clients[cid].authed = 0;
|
||||
}
|
||||
|
||||
static int new_client_callback(int cid, void *user)
|
||||
|
@ -574,6 +573,7 @@ static int new_client_callback(int cid, void *user)
|
|||
clients[cid].state = SRVCLIENT_STATE_CONNECTING;
|
||||
clients[cid].name[0] = 0;
|
||||
clients[cid].clan[0] = 0;
|
||||
clients[cid].authed = 0;
|
||||
reset_client(cid);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue