Now shows map authors (modified version of titi's commit)

This commit is contained in:
mathusummut
2019-03-15 00:42:12 +01:00
parent 3847116021
commit 514f75f580
3 changed files with 13 additions and 1 deletions

View File

@@ -1088,7 +1088,15 @@ namespace Shared {
mapInfo->hardMaxPlayers = mapInfo->players;
mapInfo->desc = i18nMaxMapPlayersTitle + ": " + intToStr(mapInfo->players) + "\n";
mapInfo->desc += i18nMapSizeTitle + ": " + intToStr(mapInfo->size.x) + " x " + intToStr(mapInfo->size.y);
mapInfo->desc += i18nMapSizeTitle + ": " + intToStr(mapInfo->size.x) + " x " + intToStr(mapInfo->size.y) + "\n";
string author = header.author;
if (author.length() > 0) {
author = "by " + author;
}
if (author.length() > 35) {
author = author.substr(0, 35) + "...";
}
mapInfo->desc += author;
validMap = true;
}