diff options
| author | megamage <none@none> | 2009-04-20 17:51:49 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-04-20 17:51:49 -0500 |
| commit | 922453f36233835536a5a71d7b679bdf3b9d8568 (patch) | |
| tree | 7385dda694ce1961ef632e46e54f5b990b1415de /src | |
| parent | b7b97ffe260ca0ba0bfb6b500908ed851105647b (diff) | |
*Do not allow process script immediately in waypoint movement to prevent crash of mtmap.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/WaypointMovementGenerator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/WaypointMovementGenerator.cpp b/src/game/WaypointMovementGenerator.cpp index 12b72829248..0cc32eefdf4 100644 --- a/src/game/WaypointMovementGenerator.cpp +++ b/src/game/WaypointMovementGenerator.cpp @@ -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); |
