mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-22 21:43:35 +00:00
Fix checks for if the physics world is loaded (#711)
This commit is contained in:
parent
408163ed35
commit
4112a85906
@ -17,6 +17,9 @@ public:
|
||||
|
||||
float GetHeightAtPoint(const NiPoint3& location);
|
||||
std::vector<NiPoint3> GetPath(const NiPoint3& startPos, const NiPoint3& endPos, float speed = 10.0f);
|
||||
|
||||
class dtNavMesh* GetdtNavMesh() { return m_NavMesh; }
|
||||
|
||||
private:
|
||||
void LoadNavmesh();
|
||||
|
||||
|
@ -24,7 +24,7 @@ public:
|
||||
~dpWorld();
|
||||
|
||||
bool ShouldUseSP(unsigned int zoneID);
|
||||
bool IsLoaded() const { return m_NavMesh != nullptr; }
|
||||
bool IsLoaded() const { return m_NavMesh->GetdtNavMesh() != nullptr; }
|
||||
|
||||
void StepWorld(float deltaTime);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user