Browse Source

engine: server: emulate pfnPEntityOfEntIndex bug only with explicitly enabled GoldSrc bug compatibility

pull/2/head
Alibek Omarov 2 years ago
parent
commit
d202a6c572
  1. 4
      engine/server/sv_game.c

4
engine/server/sv_game.c

@ -3375,7 +3375,9 @@ pfnPEntityOfEntIndex @@ -3375,7 +3375,9 @@ pfnPEntityOfEntIndex
static edict_t *pfnPEntityOfEntIndex( int iEntIndex )
{
// 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…
Cancel
Save