mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[10303] Clarify bool used for script call ProcessEventId
isStart is default true. For transport/taxi cases, it may be false for event id's at arrival (event id ending) Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
2455450cc0
commit
787fb83763
6 changed files with 10 additions and 10 deletions
|
|
@ -289,14 +289,14 @@ bool AreaTrigger ( Player *player, AreaTriggerEntry* atEntry )
|
|||
}
|
||||
|
||||
MANGOS_DLL_EXPORT
|
||||
bool ProcessEventId(uint32 eventId, Object* source, Object* target, bool data)
|
||||
bool ProcessEventId(uint32 eventId, Object* source, Object* target, bool isStart)
|
||||
{
|
||||
Script *tmpscript = m_scripts[GetEventIdScriptId(eventId)];
|
||||
if (!tmpscript || !tmpscript->pProcessEventId)
|
||||
return false;
|
||||
|
||||
// data normally false, true for taxi event id where it's a departure
|
||||
return tmpscript->pProcessEventId(eventId, source, target, data);
|
||||
// isStart are normally true. For taxi event id at arrival, it's false
|
||||
return tmpscript->pProcessEventId(eventId, source, target, isStart);
|
||||
}
|
||||
|
||||
MANGOS_DLL_EXPORT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue