mirror of
https://github.com/hermansimensen/eventqueue-fix.git
synced 2025-12-06 18:08:27 +00:00
better waittime handling.
This commit is contained in:
parent
e4d8da8ad5
commit
d55cb3b4cc
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user