From 0cc053ea4d42ce405a915857f75ee00f0f65666b Mon Sep 17 00:00:00 2001 From: Rat Date: Tue, 19 Jan 2010 11:36:05 +0100 Subject: *Integrate Script system to Core -added ScriptMgr for loading scripts -removed bindings -moved script system to src/game -moved scripts to src/scripts -VC project files updated -cmakes updated (not 100% done yet) NOTE to Devs: -file locations changed -precompiled renamed to ScriptedPch -ecsort_ai renamed to ScriptedEscortAI -follower_ai renamed to ScriptedFollowerAI -guard_ai renamed to ScriptedGuardAI -simple_ai renamed to ScriptedSimpleAI -sc_creature renamed to ScriptedCreature -sc_gossip renamed to ScriptedGossip -sc_instance renamed to ScriptedInstance *use the new headers in scripts, thank you NOTE to ALL: cmake not fully tested, please report any errors with it could make creashes, incompability USE AT YOUR OWN RISK before further tests!! --HG-- branch : trunk --- src/game/Map.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game/Map.cpp') diff --git a/src/game/Map.cpp b/src/game/Map.cpp index 247bf7efafa..5e41fcb3c57 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -39,6 +39,7 @@ #include "Vehicle.h" #include "WaypointManager.h" #include "DBCEnums.h" +#include "ScriptMgr.h" #include "MapInstanced.h" #include "InstanceSaveMgr.h" @@ -2749,7 +2750,7 @@ void InstanceMap::CreateInstanceData(bool load) if (mInstance) { i_script_id = mInstance->script_id; - i_data = Script->CreateInstanceData(this); + i_data = sScriptMgr.CreateInstanceData(this); } if (!i_data) -- cgit v1.2.3