DrLex
06-24-2003, 10:46 AM
There appears to be a missing line of code in GameLoop() in rt_main.c around line 1300, which causes an infinite loop when waiting for a keystroke while showing the "R.I.P." screen:
</font><blockquote><font size="1" face="Verdana, Arial">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">WaitKeyUp();
LastScan = 0;
while (!LastScan)
;
LastScan=0;
}[/code]</blockquote><font size="2" face="Verdana, Arial">No idea why this line of code went fishing, but the fix is simple:
</font><blockquote><font size="1" face="Verdana, Arial">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">WaitKeyUp();
IN_ClearKeysDown(); // probably not needed but can't hurt
LastScan = 0;
while (!LastScan)
IN_UpdateKeyboard(); // fixed!
LastScan=0;}[/code]</blockquote><font size="2" face="Verdana, Arial">It's about time I pack together all bug fixes I found until now, and send them to the icculus guys so they can add them to the CVS.
</font><blockquote><font size="1" face="Verdana, Arial">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">WaitKeyUp();
LastScan = 0;
while (!LastScan)
;
LastScan=0;
}[/code]</blockquote><font size="2" face="Verdana, Arial">No idea why this line of code went fishing, but the fix is simple:
</font><blockquote><font size="1" face="Verdana, Arial">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">WaitKeyUp();
IN_ClearKeysDown(); // probably not needed but can't hurt
LastScan = 0;
while (!LastScan)
IN_UpdateKeyboard(); // fixed!
LastScan=0;}[/code]</blockquote><font size="2" face="Verdana, Arial">It's about time I pack together all bug fixes I found until now, and send them to the icculus guys so they can add them to the CVS.