Optimize backtrack cleaning

This commit is contained in:
BenCat07 2018-05-21 12:47:43 +02:00
parent 8ac1cbbc50
commit fba183abb6

View File

@ -76,11 +76,12 @@ void Run()
if (CE_BAD(pEntity)) if (CE_BAD(pEntity))
{ {
for (int j = 0; j < 13; j++) if (headPositions[i][0].hitboxpos.x)
{ for (int j = 0; j < 13; j++)
headPositions[i][j].hitboxpos = { 0, 0, 0 }; {
headPositions[i][j].tickcount = 0; headPositions[i][j].hitboxpos = { 0, 0, 0 };
} headPositions[i][j].tickcount = 0;
}
continue; continue;
} }
if (!pEntity->m_bAlivePlayer) if (!pEntity->m_bAlivePlayer)