mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
Core/OutdoorPvP: refactor using Position and Quat to pack parameters
- Moved statics to cpp
- Save scriptids into an array
(cherry picked from commit 3e7b64b2f7)
This commit is contained in:
@@ -1654,11 +1654,9 @@ Battleground* ScriptMgr::CreateBattleground(BattlegroundTypeId /*typeId*/)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
OutdoorPvP* ScriptMgr::CreateOutdoorPvP(OutdoorPvPData const* data)
|
||||
OutdoorPvP* ScriptMgr::CreateOutdoorPvP(uint32 scriptId)
|
||||
{
|
||||
ASSERT(data);
|
||||
|
||||
GET_SCRIPT_RET(OutdoorPvPScript, data->ScriptId, tmpscript, NULL);
|
||||
GET_SCRIPT_RET(OutdoorPvPScript, scriptId, tmpscript, NULL);
|
||||
return tmpscript->GetOutdoorPvP();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user