chore(CI/codestyle): fix build (#4241)
This commit is contained in:
@@ -2324,7 +2324,7 @@ Position* Unit::GetMeleeAttackPoint(Unit* attacker)
|
|||||||
int8 direction = (urand(0, 1) ? -1 : 1);
|
int8 direction = (urand(0, 1) ? -1 : 1);
|
||||||
|
|
||||||
angle = frand(0.1f,0.3f) + (angle && !isnan(angle) ? angle : atan(attackerSize / (meleeReach))); // or fallback to the simpler method
|
angle = frand(0.1f,0.3f) + (angle && !isnan(angle) ? angle : atan(attackerSize / (meleeReach))); // or fallback to the simpler method
|
||||||
|
|
||||||
float x, y, z;
|
float x, y, z;
|
||||||
GetNearPoint(attacker, x, y, z, attackerSize, 0.0f, currentAngle + angle * direction);
|
GetNearPoint(attacker, x, y, z, attackerSize, 0.0f, currentAngle + angle * direction);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user