engine: client: wrong check order, fix previous commit

This commit is contained in:
Alibek Omarov 2023-12-31 06:35:38 +03:00
parent 4cf87c2c23
commit 620a4b4894

View File

@ -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 // but we need to properly run prediction and avoid potential memory
// corruption // corruption
// either debug this, or remove when old protocol will be dropped!!! // 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 ); pmove->player_index = bound( 0, cl.playernum, cl.maxclients - 1 );
} }