diff --git a/src/rcore.c b/src/rcore.c index 3a8820e38..69b5e1a83 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -2290,6 +2290,8 @@ void InitTimer(void) // Ref: http://www.geisswerks.com/ryan/FAQS/timing.html --> All about timing on Win32! void WaitTime(double seconds) { + if (seconds < 0) return; + #if defined(SUPPORT_BUSY_WAIT_LOOP) || defined(SUPPORT_PARTIALBUSY_WAIT_LOOP) double destinationTime = GetTime() + seconds; #endif