better waittime handling.

This commit is contained in:
hermansimensen 2021-03-12 00:36:49 +01:00
parent e4d8da8ad5
commit d55cb3b4cc

View File

@ -34,6 +34,7 @@ enum struct event_t
enum struct entity_t enum struct entity_t
{ {
int outputID; int outputID;
int caller;
float waitTime; float waitTime;
} }
@ -243,12 +244,15 @@ public MRESReturn DHook_AddEventThree(Handle hParams)
{ {
g_aOutputWait[event.activator].GetArray(i, ent); g_aOutputWait[event.activator].GetArray(i, ent);
if(ent.caller == event.caller)
{
if(ent.outputID == event.outputID) if(ent.outputID == event.outputID)
{ {
bFound = true; bFound = true;
break; break;
} }
} }
}
if(!bFound) if(!bFound)
{ {