Browse Source

engine: client: wrong check order, fix previous commit

pull/2/head
Alibek Omarov 11 months ago
parent
commit
620a4b4894
  1. 4
      engine/client/cl_pmove.c

4
engine/client/cl_pmove.c

@ -832,9 +832,9 @@ static void CL_SetupPMove( playermove_t *pmove, const local_state_t *from, const @@ -832,9 +832,9 @@ static void CL_SetupPMove( playermove_t *pmove, const local_state_t *from, const
// but we need to properly run prediction and avoid potential memory
// corruption
// either debug this, or remove when old protocol will be dropped!!!
if( cls.legacymode )
if( pmove->player_index < 0 )
{
if( pmove->player_index < 0 )
if( cls.legacymode )
{
pmove->player_index = bound( 0, cl.playernum, cl.maxclients - 1 );
}

Loading…
Cancel
Save