Better performance

This commit is contained in:
Yunfan Li
2024-04-10 23:40:46 +08:00
parent 00a3436d77
commit 7cd74da201
4 changed files with 5 additions and 4 deletions

View File

@@ -5,6 +5,7 @@
#ifndef _PLAYERBOT_ENEMYPLAYERVALUE_H
#define _PLAYERBOT_ENEMYPLAYERVALUE_H
#include "PlayerbotAIConfig.h"
#include "TargetValue.h"
#include "PossibleTargetsValue.h"
@@ -14,7 +15,7 @@ class Unit;
class NearestEnemyPlayersValue : public PossibleTargetsValue
{
public:
NearestEnemyPlayersValue(PlayerbotAI* botAI, float range = 120.0f) :
NearestEnemyPlayersValue(PlayerbotAI* botAI, float range = sPlayerbotAIConfig->grindDistance) :
PossibleTargetsValue(botAI, "nearest enemy players", range) { }
public: