This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/game/RandomMovementGenerator.cpp b/src/game/RandomMovementGenerator.cpp | |
index 40684d1..f4d1a1e 100644 | |
--- a/src/game/RandomMovementGenerator.cpp | |
+++ b/src/game/RandomMovementGenerator.cpp | |
@@ -40,8 +40,17 @@ void RandomMovementGenerator<Creature>::_setRandomLocation(Creature &creature) | |
creature.addUnitState(UNIT_STAT_ROAMING_MOVE); | |
+ PathFinder path(&creature); | |
+ path.setPathLengthLimit(30.0f); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp | |
index 3ec845f..5863de4 100644 | |
--- a/src/game/Level2.cpp | |
+++ b/src/game/Level2.cpp | |
@@ -5344,10 +5344,7 @@ bool ChatHandler::HandleMmapPathCommand(char* args) | |
static const uint32 WAYPOINT_NPC_ENTRY = 1; | |
Creature* wp = NULL; | |
for (uint32 i = 0; i < pointPath.size(); ++i) | |
- { | |
wp = player->SummonCreature(WAYPOINT_NPC_ENTRY, pointPath[i].x, pointPath[i].y, pointPath[i].z, 0, TEMPSUMMON_TIMED_DESPAWN, 9000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/win/mangosdVC100.sln b/win/mangosdVC100.sln | |
index f5e416a..c6dd46a 100644 | |
--- a/win/mangosdVC100.sln | |
+++ b/win/mangosdVC100.sln | |
@@ -132,18 +132,6 @@ Global | |
{563E9905-3657-460C-AE63-0AC39D162E23}.Release|Win32.Build.0 = Release|Win32 | |
{563E9905-3657-460C-AE63-0AC39D162E23}.Release|x64.ActiveCfg = Release|x64 | |
{563E9905-3657-460C-AE63-0AC39D162E23}.Release|x64.Build.0 = Release|x64 | |
- {4205C8A9-79B7-4354-8064-F05FB9CA0C96}.Debug_NoPCH|Win32.ActiveCfg = Debug_NoPCH|Win32 | |
- {4205C8A9-79B7-4354-8064-F05FB9CA0C96}.Debug_NoPCH|Win32.Build.0 = Debug_NoPCH|Win32 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/game/MoveMap.cpp b/src/game/MoveMap.cpp | |
index 6323125..bf1ce38 100644 | |
--- a/src/game/MoveMap.cpp | |
+++ b/src/game/MoveMap.cpp | |
@@ -205,8 +205,12 @@ namespace MMAP | |
dtMeshHeader* header = (dtMeshHeader*)data; | |
dtTileRef tileRef = 0; | |
+ mmap->navMeshLock.acquire_write(); | |
+ dtStatus stat = mmap->navMesh->addTile(data, fileHeader.size, DT_TILE_FREE_DATA, 0, &tileRef); |