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,10 +244,13 @@ public MRESReturn DHook_AddEventThree(Handle hParams)
{ {
g_aOutputWait[event.activator].GetArray(i, ent); g_aOutputWait[event.activator].GetArray(i, ent);
if(ent.outputID == event.outputID) if(ent.caller == event.caller)
{ {
bFound = true; if(ent.outputID == event.outputID)
break; {
bFound = true;
break;
}
} }
} }