[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:
NoFantasy 2010-08-01 02:19:06 +02:00
parent 2455450cc0
commit 787fb83763
6 changed files with 10 additions and 10 deletions

View file

@ -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