From 0a2af88cb455bad8166140e544c829c405055628 Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 31 Jul 2009 10:48:34 +0800 Subject: [8252] Move DB scripting code from global World to Map. Author: Ambal This one more step to pre-map events proccesing and parallel in future. [8256] Restore DB script loading broken after [8252]. Author: VladimirMangos Also propetly decrease scheduled DB script actions at map unloading. Some code style restore. --HG-- branch : trunk --- src/game/WaypointMovementGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/WaypointMovementGenerator.cpp') diff --git a/src/game/WaypointMovementGenerator.cpp b/src/game/WaypointMovementGenerator.cpp index 34be9d3179b..92fd9bca2d7 100644 --- a/src/game/WaypointMovementGenerator.cpp +++ b/src/game/WaypointMovementGenerator.cpp @@ -198,7 +198,7 @@ WaypointMovementGenerator::Update(Creature &unit, const uint32 &diff) //note: disable "start" for mtmap if(node->event_id && rand()%100 < node->event_chance) - sWorld.ScriptsStart(sWaypointScripts, node->event_id, &unit, NULL, false); + unit.GetMap()->ScriptsStart(sWaypointScripts, node->event_id, &unit, NULL/*, false*/); MovementInform(unit); unit.UpdateWaypointID(i_currentNode); -- cgit v1.2.3