From 922453f36233835536a5a71d7b679bdf3b9d8568 Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 20 Apr 2009 17:51:49 -0500 Subject: [PATCH] *Do not allow process script immediately in waypoint movement to prevent crash of mtmap. --HG-- branch : trunk --- src/game/WaypointMovementGenerator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/WaypointMovementGenerator.cpp b/src/game/WaypointMovementGenerator.cpp index 12b7282924..0cc32eefdf 100644 --- a/src/game/WaypointMovementGenerator.cpp +++ b/src/game/WaypointMovementGenerator.cpp @@ -187,8 +187,9 @@ WaypointMovementGenerator::Update(Creature &unit, const uint32 &diff) if(node->delay) i_nextMoveTime.Reset(node->delay); + //note: disable "start" for mtmap if(node->event_id && rand()%100 < node->event_chance) - sWorld.ScriptsStart(sWaypointScripts, node->event_id, &unit, NULL); + sWorld.ScriptsStart(sWaypointScripts, node->event_id, &unit, NULL, false); MovementInform(unit); unit.UpdateWaypointID(i_currentNode);