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:
1 parent
f98e7b13f4
commit
9747eab9f3
1 file changed
+5
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
//======================================================================
|
||||
|
||||
Reference in new issue
Block a user