[Changelog] Removed trim

This commit is contained in:
/dev/root 2017-02-04 20:26:46 +01:00
parent f042aa2d4f
commit 9f52029121
3 changed files with 5 additions and 5 deletions

View File

@ -16,6 +16,7 @@ This is the third public Beta version.
### Changed ### Changed
- Added join on enter in serverlist (request) - Added join on enter in serverlist (request)
- Redesigned changelog menu
### Fixed ### Fixed

View File

@ -17,7 +17,7 @@ namespace Components
if (uncleaned.empty()) if (uncleaned.empty())
{ {
uncleaned = "\n\n^1Unable to get changelog."; uncleaned = "^1Unable to get changelog.";
} }
changelog = Utils::String::Explode(uncleaned, '\n'); changelog = Utils::String::Explode(uncleaned, '\n');
@ -28,13 +28,10 @@ namespace Components
Changelog::changelogLine info; Changelog::changelogLine info;
Utils::String::Replace(line, "\r", ""); Utils::String::Replace(line, "\r", "");
info.line = Utils::String::Trim(line); info.line = line;
Changelog::Line.push_back(info); Changelog::Line.push_back(info);
} }
// Reverse, latest demo first!
//std::reverse(Changelog::Line.begin(), Changelog::Line.end());
} }
unsigned int Changelog::GetChangelogCount() unsigned int Changelog::GetChangelogCount()

View File

@ -175,6 +175,8 @@ namespace Components
News::Terminate = false; News::Terminate = false;
News::Thread = std::thread([]() News::Thread = std::thread([]()
{ {
//Changelog::LoadChangelog(UIScript::Token);
std::string data = Utils::Cache::GetFile("/iw4/motd.txt"); std::string data = Utils::Cache::GetFile("/iw4/motd.txt");
if (!data.empty()) if (!data.empty())