* Add new TransportScript::OnRelocate hook.
* TransportScript::OnUpdate is now called on every tick, not just on movement update. --HG-- branch : trunk
This commit is contained in:
1 parent
bcfc58a72d
commit
360e028331
3 files changed
+17
-5
No files matched your search
@@ -1006,6 +1006,12 @@ void ScriptMgr::OnTransportUpdate(Transport* transport, uint32 diff)
|
||||
tmpscript->OnUpdate(transport, diff);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnRelocate(Transport* transport, uint32 mapId, float x, float y, float z)
|
||||
{
|
||||
GET_SCRIPT(TransportScript, transport->GetScriptId(), tmpscript);
|
||||
tmpscript->OnRelocate(transport, mapId, x, y, z);
|
||||
}
|
||||
|
||||
void SpellHandlerScript::RegisterSelf()
|
||||
{
|
||||
ScriptMgr::ScriptRegistry<SpellHandlerScript>::AddScript(this);
|
||||
|
||||
Reference in new issue
Block a user