allow to have no timeout (by specifying 0)

This commit is contained in:
Laurent Vivier 2007-08-18 13:32:30 +00:00
parent 7279dcd375
commit 1fe38714a4

View File

@ -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;