mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Fix WaitForEvent having an extra delay tick
This commit is contained in:
@@ -620,11 +620,11 @@ bool WaitForEvent(TimeTaggedVOSEvent *eventOut, uint32_t ticks)
|
|||||||
if (PortabilityLayer::EventQueue::GetInstance()->Dequeue(eventOut))
|
if (PortabilityLayer::EventQueue::GetInstance()->Dequeue(eventOut))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
Delay(1, nullptr);
|
|
||||||
|
|
||||||
if (ticks == 0)
|
if (ticks == 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Delay(1, nullptr);
|
||||||
|
|
||||||
ticks--;
|
ticks--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user