Fix: don't quit on timeout if time is stepped to past. Thanks to Viktor Nozhnov 2:5020/1668

This commit is contained in:
Stas Degteff 2006-06-06 17:29:10 +00:00
parent fad3fd7d09
commit 14d947467e

View File

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