|
|
@ -1866,12 +1866,15 @@ void process_commands()
|
|
|
|
|
|
|
|
|
|
|
|
codenum = 0;
|
|
|
|
codenum = 0;
|
|
|
|
|
|
|
|
|
|
|
|
bool hasP = code_seen('P');
|
|
|
|
bool hasP = false, hasS = false;
|
|
|
|
if (hasP) codenum = code_value(); // milliseconds to wait
|
|
|
|
if (code_seen('P')) {
|
|
|
|
|
|
|
|
codenum = code_value(); // milliseconds to wait
|
|
|
|
bool hasS = code_seen('S');
|
|
|
|
hasP = codenum > 0;
|
|
|
|
if (hasS) codenum = code_value() * 1000; // seconds to wait
|
|
|
|
}
|
|
|
|
|
|
|
|
if (code_seen('S')) {
|
|
|
|
|
|
|
|
codenum = code_value() * 1000; // seconds to wait
|
|
|
|
|
|
|
|
hasS = codenum > 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
if (!hasP && !hasS && *src != '\0') {
|
|
|
|
if (!hasP && !hasS && *src != '\0') {
|
|
|
|
starpos = strchr(src, '*');
|
|
|
|
starpos = strchr(src, '*');
|
|
|
|
if (starpos != NULL) *(starpos) = '\0';
|
|
|
|
if (starpos != NULL) *(starpos) = '\0';
|
|
|
|