mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-14 01:19:08 +00:00
[Tank face] Improve angle calculation
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user