Skip to content
Snippets Groups Projects
Commit 7257b432 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
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
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1814 passed
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment