mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-11 21:16:46 +03:00
Fixed crash when inactive player gets kicked
This commit is contained in:
parent
fbac483f60
commit
ab1b6ae409
1 changed files with 2 additions and 2 deletions
|
@ -7086,8 +7086,6 @@ void Player::ClientThink
|
||||||
client->cmd_angles[ 1 ] = SHORT2ANGLE( current_ucmd->angles[ 1 ] );
|
client->cmd_angles[ 1 ] = SHORT2ANGLE( current_ucmd->angles[ 1 ] );
|
||||||
client->cmd_angles[ 2 ] = SHORT2ANGLE( current_ucmd->angles[ 2 ] );
|
client->cmd_angles[ 2 ] = SHORT2ANGLE( current_ucmd->angles[ 2 ] );
|
||||||
|
|
||||||
ClientInactivityTimer();
|
|
||||||
|
|
||||||
if( g_gametype->integer && g_smoothClients->integer && !IsSubclassOfBot() )
|
if( g_gametype->integer && g_smoothClients->integer && !IsSubclassOfBot() )
|
||||||
{
|
{
|
||||||
VectorCopy( client->ps.velocity, edict->s.pos.trDelta );
|
VectorCopy( client->ps.velocity, edict->s.pos.trDelta );
|
||||||
|
@ -7098,6 +7096,8 @@ void Player::ClientThink
|
||||||
VectorClear( edict->s.pos.trDelta );
|
VectorClear( edict->s.pos.trDelta );
|
||||||
edict->s.pos.trTime = 0;
|
edict->s.pos.trTime = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ClientInactivityTimer();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::UpdateEnemies
|
void Player::UpdateEnemies
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue