Fix errors on wrong command

This commit is contained in:
郑佩茹
2022-09-22 17:35:27 -06:00
parent 8523079c35
commit cbf17c3eb9
2 changed files with 5 additions and 1 deletions

View File

@@ -9,6 +9,10 @@ PlayerbotAIBase::PlayerbotAIBase(bool isBotAI) : nextAICheckDelay(0), _isBotAI(i
{ {
} }
void PlayerbotAIBase::UpdateAIInternal(uint32 elapsed, bool minimal)
{
}
void PlayerbotAIBase::UpdateAI(uint32 elapsed, bool minimal) void PlayerbotAIBase::UpdateAI(uint32 elapsed, bool minimal)
{ {
if (nextAICheckDelay > elapsed) if (nextAICheckDelay > elapsed)

View File

@@ -17,7 +17,7 @@ class PlayerbotAIBase
void IncreaseNextCheckDelay(uint32 delay); void IncreaseNextCheckDelay(uint32 delay);
void YieldThread(bool delay = false); void YieldThread(bool delay = false);
virtual void UpdateAI(uint32 elapsed, bool minimal = false); virtual void UpdateAI(uint32 elapsed, bool minimal = false);
virtual void UpdateAIInternal(uint32 elapsed, bool minimal = false) = 0; virtual void UpdateAIInternal(uint32 elapsed, bool minimal = false);
bool IsActive(); bool IsActive();
bool IsBotAI() const; bool IsBotAI() const;