mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-02-20 11:03:12 +00:00
Fix "Going to CS_ZOMBIE for [clientname]" developer message
Client name was cleared before printing the message resulting in a blank name.
This commit is contained in:
parent
b61e2998f3
commit
3bf48877f3
1 changed files with 3 additions and 5 deletions
|
@ -671,12 +671,7 @@ void SV_DropClient( client_t *drop, const char *reason ) {
|
|||
|
||||
if ( isBot ) {
|
||||
SV_BotFreeClient( drop - svs.clients );
|
||||
}
|
||||
|
||||
// nuke user info
|
||||
SV_SetUserinfo( drop - svs.clients, "" );
|
||||
|
||||
if ( isBot ) {
|
||||
// bots shouldn't go zombie, as there's no real net connection.
|
||||
drop->state = CS_FREE;
|
||||
} else {
|
||||
|
@ -684,6 +679,9 @@ void SV_DropClient( client_t *drop, const char *reason ) {
|
|||
drop->state = CS_ZOMBIE; // become free in a few seconds
|
||||
}
|
||||
|
||||
// nuke user info
|
||||
SV_SetUserinfo( drop - svs.clients, "" );
|
||||
|
||||
// if this was the last client on the server, send a heartbeat
|
||||
// to the master so it is known the server is empty
|
||||
// send a heartbeat now so the master will get up to date info
|
||||
|
|
Loading…
Reference in a new issue