[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

@ -913,7 +913,7 @@ void GameObject::Use(Unit* user)
{
DEBUG_LOG("Chest ScriptStart id %u for GO %u", GetGOInfo()->chest.eventId, GetDBTableGUIDLow());
if (!Script->ProcessEventId(GetGOInfo()->chest.eventId, user, this, false))
if (!Script->ProcessEventId(GetGOInfo()->chest.eventId, user, this, true))
GetMap()->ScriptsStart(sEventScripts, GetGOInfo()->chest.eventId, user, this);
}
@ -1019,7 +1019,7 @@ void GameObject::Use(Unit* user)
{
DEBUG_FILTER_LOG(LOG_FILTER_AI_AND_MOVEGENSS, "Goober ScriptStart id %u for GO entry %u (GUID %u).", info->goober.eventId, GetEntry(), GetDBTableGUIDLow());
if (!Script->ProcessEventId(info->goober.eventId, player, this, false))
if (!Script->ProcessEventId(info->goober.eventId, player, this, true))
GetMap()->ScriptsStart(sEventScripts, info->goober.eventId, player, this);
}
@ -1082,7 +1082,7 @@ void GameObject::Use(Unit* user)
if (info->camera.eventID)
{
if (!Script->ProcessEventId(info->camera.eventID, player, this, false))
if (!Script->ProcessEventId(info->camera.eventID, player, this, true))
GetMap()->ScriptsStart(sEventScripts, info->camera.eventID, player, this);
}