[Tank face] Improve angle calculation

This commit is contained in:
Yunfan Li
2024-09-24 20:34:18 +08:00
parent eea652f5d5
commit 2756664b77
2 changed files with 15 additions and 6 deletions

View File

@@ -4,6 +4,7 @@
*/
#include "IsFacingValue.h"
#include <cmath>
#include "Playerbots.h"
@@ -13,5 +14,5 @@ bool IsFacingValue::Calculate()
if (!target)
return false;
return bot->HasInArc(CAST_ANGLE_IN_FRONT, target);
return bot->HasInArc(M_PI_2, target);
}