GRAPHICS: MACGUI: clean the code for stripFormat in mactext

This commit is contained in:
ysj1173886760 2021-06-02 21:15:15 +08:00 committed by Eugene Sandulenko
parent a5e6f59533
commit 43826c7839

View file

@ -1325,24 +1325,11 @@ Common::U32String stripFormat(const Common::U32String &str) {
res += *l++;
}
} else if (*l == '\015') { // binary format
// 12 for total
// we are skipping the formatting stuffs
l++;
l += 2;
l++;
l += 2;
l += 2;
l += 2;
l += 2;
// this number 12, and the number 23, is the size of our format
l += 12;
} else if (*l == '\016') { // human-readable format
// 23 for total, should we replace it with l += 23;
l++;
l += 4;
l += 2;
l += 4;
l += 4;
l += 4;
l += 4;
l += 23;
} else {
res += *l++;
}