Avoid displaying "Can't display japanese title" just for a TM sign

This commit is contained in:
Henrik Rydgard 2013-03-11 21:32:14 +01:00
parent 724a7c8c93
commit 41b86aff3e

View File

@ -238,7 +238,8 @@ void InGameMenuScreen::render() {
DrawBackground(1.0f);
const char *title;
if (UTF8StringHasNonASCII(game_title.c_str())) {
// Try to ignore (tm) etc.
if (UTF8StringNonASCIICount(game_title.c_str()) > 2) {
title = "(can't display japanese title)";
} else {
title = game_title.c_str();