*Do not allow process script immediately in waypoint movement to prevent crash of mtmap.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-20 17:51:49 -05:00
parent b7b97ffe26
commit 922453f362
+2 -1
View File
@@ -187,8 +187,9 @@ WaypointMovementGenerator<Creature>::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);