Missed adjustment for the increased prefix length of the perm_invent window

This commit is contained in:
Patric Mueller
2021-04-01 22:58:46 +02:00
parent dcdce2aab1
commit 921b7b955f

View File

@@ -302,9 +302,9 @@ curs_add_invt(
len = strlen(str);
if (accelerator) {
/* +3: ")c " inventory letter will be inserted before invtxt;
/* +4: " )c " inventory letter will be inserted before invtxt;
invtxt's "a "/"an "/"the " prefix, if any, will be skipped */
len += 3;
len += 4;
if (len > pi.widest)
len -= pi_article_skip(str);
}