Fix orbs not flying in certain situations

► Fixed an issue where an orb would levitate in the air if a player disconnected while holding an orb in their physcannon.
This commit is contained in:
speedvoltage 2025-03-12 11:54:55 +01:00
parent a62efecf62
commit e238c4a9b6

View file

@ -2766,6 +2766,7 @@ void CServerGameClients::ClientDisconnect( edict_t *pEdict )
CBasePlayer *player = ( CBasePlayer * )CBaseEntity::Instance( pEdict );
if ( player )
{
player->ForceDropOfCarriedPhysObjects( NULL );
if ( !g_fGameOver )
{
player->SetMaxSpeed( 0.0f );