engine: client: remove redundant index check
This commit is contained in:
parent
b7922368bd
commit
d011dccaab
1 changed files with 3 additions and 0 deletions
|
@ -2417,12 +2417,15 @@ pfnIndexFromTrace
|
||||||
*/
|
*/
|
||||||
int GAME_EXPORT pfnIndexFromTrace( struct pmtrace_s *pTrace )
|
int GAME_EXPORT pfnIndexFromTrace( struct pmtrace_s *pTrace )
|
||||||
{
|
{
|
||||||
|
#if 0 // Velaron: breaks compatibility with mods that call the function after CL_PopPMStates
|
||||||
if( pTrace->ent >= 0 && pTrace->ent < clgame.pmove->numphysent )
|
if( pTrace->ent >= 0 && pTrace->ent < clgame.pmove->numphysent )
|
||||||
{
|
{
|
||||||
// return cl.entities number
|
// return cl.entities number
|
||||||
return clgame.pmove->physents[pTrace->ent].info;
|
return clgame.pmove->physents[pTrace->ent].info;
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
|
#endif
|
||||||
|
return clgame.pmove->physents[pTrace->ent].info;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue