Add I_Sleep into CONS_Error so if a wad file was not found game won't take 100% of cpu

This commit is contained in:
indev committed 2025-05-08 17:20:28 +03:00
1 parent f98e7b13f4
commit 9747eab9f3
1 file changed
+5
+5
View File
@@ -1334,7 +1334,12 @@ void CONS_Error(const char *msg)
// dirty quick hack, but for the good cause
while (I_GetKey() != KEY_ENTER)
{
// Sleep so we don't take too much of cpu usage
I_Sleep(1.f/TICRATE*1000);
I_OsPolling();
}
}
//======================================================================