mirror of https://github.com/FWGS/hlsdk-xash3d
parent
fc76bfe035
commit
1c20b037d4
|
@ -519,19 +519,6 @@ void CHalfLifeMultiplay::ClientDisconnected( edict_t *pClient )
|
||||||
}
|
}
|
||||||
|
|
||||||
pPlayer->RemoveAllItems( TRUE );// destroy all of the players weapons and items
|
pPlayer->RemoveAllItems( TRUE );// destroy all of the players weapons and items
|
||||||
|
|
||||||
//fix a bug in the information about the player's score when he left the server, so that his score would not be transferred to another player(seems to work)
|
|
||||||
pPlayer->pev->frags = 0;
|
|
||||||
pPlayer->m_iDeaths = 0;
|
|
||||||
|
|
||||||
// update the scores
|
|
||||||
MESSAGE_BEGIN( MSG_ALL, gmsgScoreInfo );
|
|
||||||
WRITE_BYTE( ENTINDEX(pPlayer->edict()) );
|
|
||||||
WRITE_SHORT( (int)pPlayer->pev->frags );
|
|
||||||
WRITE_SHORT( pPlayer->m_iDeaths );
|
|
||||||
WRITE_SHORT( 0 );
|
|
||||||
WRITE_SHORT( 0 );
|
|
||||||
MESSAGE_END();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue