|
|
|
@ -342,6 +342,7 @@ void SV_ConnectClient( netadr_t from )
@@ -342,6 +342,7 @@ void SV_ConnectClient( netadr_t from )
|
|
|
|
|
sv.current_client = newcl; |
|
|
|
|
newcl->edict = EDICT_NUM( (newcl - svs.clients) + 1 ); |
|
|
|
|
newcl->challenge = challenge; // save challenge for checksumming
|
|
|
|
|
if( newcl->frames ) Mem_Free( newcl->frames ); |
|
|
|
|
newcl->frames = (client_frame_t *)Z_Malloc( sizeof( client_frame_t ) * SV_UPDATE_BACKUP ); |
|
|
|
|
newcl->userid = g_userid++; // create unique userid
|
|
|
|
|
newcl->state = cs_connected; |
|
|
|
|