Re-fix: don't quit on timeout if time is stepped to past.

This commit is contained in:
Stas Degteff 2006-06-09 06:46:43 +00:00
parent 98373720af
commit 77444fa135

View File

@ -656,10 +656,10 @@ void call_help() {
void CheckTick(gkey quitkey) {
Clock idle_secs = abs(gkbd.tickvalue - gkbd.tickpress) / 10L;
Clock idle_secs = gkbd.tickvalue > gkbd.tickpress? (gkbd.tickvalue - gkbd.tickpress / 10L) : 0;
if(CFG->timeout) {
if(((signed long)idle_secs > 0) and (idle_secs >= CFG->timeout)) {
if(idle_secs >= CFG->timeout) {
kbput(quitkey);
return;
}