The compiler is a bit dumb sometimes, let's help a bit
This commit is contained in:
parent
53561ff881
commit
fb349dbd9f
2 changed files with 6 additions and 2 deletions
|
@ -1310,10 +1310,12 @@ void CInput::CreateMove ( int sequence_number, float input_sample_frametime, boo
|
|||
cmd->simulationdata[i] = {};
|
||||
}
|
||||
|
||||
auto entities = g_pFastEntityLookUp->entities;
|
||||
|
||||
// Send interpolated simulation time for lag compensation, let it also auto-vectorize this.
|
||||
for ( int i = 0; i < MAX_EDICTS; i++ )
|
||||
{
|
||||
auto pEntity = g_pFastEntityLookUp->entities[i];
|
||||
auto pEntity = entities[i];
|
||||
|
||||
if ( !pEntity )
|
||||
{
|
||||
|
|
|
@ -1278,9 +1278,11 @@ CBaseEntity *UTIL_FindEntityProcedural( const char *szName, CBaseEntity *pSearch
|
|||
*/
|
||||
CBaseEntity* UTIL_FindEntityByName(const char* szName)
|
||||
{
|
||||
auto entities = g_pFastEntityLookUp->entities;
|
||||
|
||||
for (int i = 0; i < MAX_EDICTS; ++i)
|
||||
{
|
||||
IClientEntity* pClientEntity = g_pFastEntityLookUp->entities[i];
|
||||
IClientEntity* pClientEntity = entities[i];
|
||||
|
||||
if (!pClientEntity)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue