mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-09 03:58:14 +03:00
Reduced compile warnings (especially on clang)
This commit is contained in:
parent
de40d640d5
commit
f9e7f344be
15 changed files with 60 additions and 56 deletions
|
@ -566,7 +566,7 @@ void ActorEnemySet::CheckEnemies
|
|||
{
|
||||
pActorEnemy = &m_Enemies[i-1];
|
||||
pActorEnemy->UpdateThreat(pSelf);
|
||||
if (m_iCurrentThreat < pActorEnemy->m_iThreat || m_iCheckCount == pActorEnemy->m_iThreat && fRangeSquared > pActorEnemy->m_fCurrentRangeSquared)
|
||||
if (m_iCurrentThreat < pActorEnemy->m_iThreat || (m_iCheckCount == pActorEnemy->m_iThreat && fRangeSquared > pActorEnemy->m_fCurrentRangeSquared))
|
||||
{
|
||||
m_iCurrentThreat = pActorEnemy->m_iThreat;
|
||||
m_pCurrentEnemy = pActorEnemy->m_pEnemy;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue