Skip to content
Snippets Groups Projects
Commit c91c048e authored by rswindell's avatar rswindell
Browse files

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

parent c0bb0664
No related branches found
No related tags found
No related merge requests found
...@@ -345,8 +345,11 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen) ...@@ -345,8 +345,11 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen)
return(nulstr); return(nulstr);
} }
if(strncmp(sp, "POS:", 4) == 0) { // PCBoard (nn is 0 or 1 based?) if(strncmp(sp, "POS:", 4) == 0) { // PCBoard (nn is 1 based)
for(l = atoi(sp + 4) - column; l > 0; l--) i = atoi(sp + 4);
if(i >= 1) // Convert to 0-based
i--;
for(l = i - column; l > 0; l--)
outchar(' '); outchar(' ');
return nulstr; return nulstr;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment