mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-11 15:47:55 +00:00
engine: client: wrong check order, fix previous commit
This commit is contained in:
parent
4cf87c2c23
commit
620a4b4894
@ -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 );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user