mirror of
https://github.com/zebrajr/SamRewritten.git
synced 2025-12-06 12:19:51 +01:00
Merge pull request #141 from DeadStarlin/longAchievementIdCrash
Long Achievement name crash
This commit is contained in:
commit
d0cdadf23e
|
|
@ -25,6 +25,9 @@ AchievementBoxRow::AchievementBoxRow(const Achievement_t& data)
|
|||
button_icon_name = data.achieved ? ACH_BOX_ROW_ICON_UNLOCKED : ACH_BOX_ROW_ICON_LOCKED;
|
||||
escaped_name = data.name;
|
||||
escape_html(escaped_name);
|
||||
if (escaped_name.length() > 80) {
|
||||
escaped_name = escaped_name.substr(0,77) + "...";
|
||||
}
|
||||
ach_title_text = "<b>" + escaped_name + "</b>";
|
||||
char tmpbuf[16];
|
||||
snprintf(tmpbuf, 16, "%.1f", data.global_achieved_rate);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user