Minor optimization suggested by CytraL

This commit is contained in:
def 2014-12-30 14:43:02 +01:00
parent f0d830021a
commit b3581f6dba

View file

@ -333,7 +333,7 @@ void CCharacterCore::Tick(bool UseInput, bool IsClient)
m_NewHook = true;
int Num = (*m_pTeleOuts)[teleNr-1].size();
m_HookPos = (*m_pTeleOuts)[teleNr-1][(!Num)?Num:rand() % Num]+TargetDirection*PhysSize*1.5f;
m_HookPos = (*m_pTeleOuts)[teleNr-1][(Num==1)?0:rand() % Num]+TargetDirection*PhysSize*1.5f;
m_HookDir = TargetDirection;
m_HookTeleBase = m_HookPos;
}