mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-16 16:46:10 +00:00
Run clang-format
This commit is contained in:
@@ -1,21 +1,24 @@
|
||||
|
||||
#include "RaidUlduarActions.h"
|
||||
|
||||
#include "ObjectGuid.h"
|
||||
#include "PlayerbotAIConfig.h"
|
||||
#include "Playerbots.h"
|
||||
#include "RaidUlduarActions.h"
|
||||
#include "RaidUlduarBossHelper.h"
|
||||
#include "RaidUlduarStrategy.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "SharedDefines.h"
|
||||
#include "RaidUlduarBossHelper.h"
|
||||
|
||||
uint32 RotateAroundTheCenterPointAction::FindNearestWaypoint()
|
||||
{
|
||||
float minDistance = 0;
|
||||
int ret = -1;
|
||||
for (int i = 0; i < intervals; i++) {
|
||||
for (int i = 0; i < intervals; i++)
|
||||
{
|
||||
float w_x = waypoints[i].first, w_y = waypoints[i].second;
|
||||
float dis = bot->GetDistance2d(w_x, w_y);
|
||||
if (ret == -1 || dis < minDistance) {
|
||||
if (ret == -1 || dis < minDistance)
|
||||
{
|
||||
ret = i;
|
||||
minDistance = dis;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user