Commit 7257b432 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

New @-code: CONTINUE

CONTINUE is like GETKEY except it'll set the display-abort flag if 'N' or 'Q' are typed.

Make the WAIT:<n> argument 10ths of a second (instead of milliseconds) to be more consistent with DELAY:<n>.
parent 556bdf8f
Pipeline #1814 passed with stage
in 13 minutes and 41 seconds
......@@ -704,8 +704,15 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen, long* pmode, bool
return(nulstr);
}
if(strcmp(sp, "CONTINUE") == 0) {
char ch = getkey(K_UPPER);
if(ch == text[YNQP][1] || ch == text[YNQP][2])
sys_status|=SS_ABORT;
return(nulstr);
}
if(strncmp(sp, "WAIT:", 5) == 0) {
inkey(K_NONE, atoi(sp + 5));
inkey(K_NONE, atoi(sp + 5) * 100);
return(nulstr);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment