mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-22 10:29:31 +00:00
allow to have no timeout (by specifying 0)
This commit is contained in:
parent
7279dcd375
commit
1fe38714a4
@ -50,7 +50,7 @@ int console_keypressed(int timeout)
|
||||
{
|
||||
long time = Ticks + timeout;
|
||||
|
||||
while (Ticks < time)
|
||||
while (!timeout || (Ticks < time))
|
||||
{
|
||||
if (vga_enabled && keyboard_keypressed())
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user