mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-29 08:14:15 +00:00
engine: server: emulate pfnPEntityOfEntIndex bug only with explicitly enabled GoldSrc bug compatibility
This commit is contained in:
parent
6e864e4f8f
commit
d202a6c572
@ -3375,7 +3375,9 @@ pfnPEntityOfEntIndex
|
|||||||
static edict_t *pfnPEntityOfEntIndex( int iEntIndex )
|
static edict_t *pfnPEntityOfEntIndex( int iEntIndex )
|
||||||
{
|
{
|
||||||
// have to be bug-compatible with GoldSrc in this function
|
// have to be bug-compatible with GoldSrc in this function
|
||||||
return SV_PEntityOfEntIndex( iEntIndex, false );
|
if( host.bugcomp == BUGCOMP_GOLDSRC )
|
||||||
|
return SV_PEntityOfEntIndex( iEntIndex, false );
|
||||||
|
return SV_PEntityOfEntIndex( iEntIndex, true );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user