mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-09 03:24:52 +00:00
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:
parent
a62efecf62
commit
e238c4a9b6
1 changed files with 1 additions and 0 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue