16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 07:39:19 +02:00

Set line width for trivia to maximum of 100 characters

This commit is contained in:
2025-09-16 00:28:23 +02:00
parent f43d4b5201
commit 66c63c1e53

View File

@@ -55,7 +55,7 @@ std::vector<std::string> scenarioloader_ui::get_random_trivia()
std::string background = triviaData[lang][i]["background"];
// divide trivia into multiple lines
const int max_line_length = 40;
const int max_line_length = 100;
while (triviaStr.length() > max_line_length)
{
int split_pos = triviaStr.rfind(' ', max_line_length);