mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
refactor(Core/Tools): remove ACE from tools (#3351)
This commit is contained in:
@@ -10,11 +10,11 @@
|
||||
#include "Utils.h"
|
||||
#include "DetourNavMesh.h"
|
||||
#include "Cache.h"
|
||||
#include "ace/Task.h"
|
||||
#include <thread>
|
||||
#include "Recast.h"
|
||||
#include "DetourCommon.h"
|
||||
|
||||
class BuilderThread : public ACE_Task_Base
|
||||
class BuilderThread
|
||||
{
|
||||
private:
|
||||
int X, Y, MapId;
|
||||
@@ -99,7 +99,7 @@ void ContinentBuilder::CalculateTileBounds()
|
||||
tileYMax = std::max(itr->Y, tileYMax);
|
||||
tileYMin = std::min(itr->Y, tileYMin);
|
||||
}
|
||||
getTileBounds(tileXMax, tileYMax, NULL, 0, bmin, bmax);
|
||||
getTileBounds(tileXMax, tileYMax, nullptr, 0, bmin, bmax);
|
||||
}
|
||||
|
||||
void ContinentBuilder::Build()
|
||||
@@ -186,7 +186,7 @@ void ContinentBuilder::Build()
|
||||
}
|
||||
}
|
||||
// Wait for 20 seconds
|
||||
ACE_OS::sleep(ACE_Time_Value (0, 20000));
|
||||
std::this_thread::sleep_for(std::chrono::seconds(20));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user