Commit c91c048e authored by rswindell's avatar rswindell
Browse files

PCBoard @POS:nn is 1-based according to Ozz Nixon.

parent c0bb0664
......@@ -345,8 +345,11 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen)
return(nulstr);
}
if(strncmp(sp, "POS:", 4) == 0) { // PCBoard (nn is 0 or 1 based?)
for(l = atoi(sp + 4) - column; l > 0; l--)
if(strncmp(sp, "POS:", 4) == 0) { // PCBoard (nn is 1 based)
i = atoi(sp + 4);
if(i >= 1) // Convert to 0-based
i--;
for(l = i - column; l > 0; l--)
outchar(' ');
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