mirror of
https://github.com/glest/glest-source.git
synced 2025-08-11 10:54:01 +02:00
Now shows map authors (modified version of titi's commit)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user