From 74d5891ad0aaeb2b5d9ac04d09f76fb3ce834366 Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Sat, 5 May 2018 11:51:32 +1100 Subject: [PATCH] MP Create Game: cap custom game names at 50 characters [ci skip] (cherry-picked from commit d9e3983e976b7b3ace600a48e79342f5b80a05d5) --- changelog.md | 1 + data/gui/window/mp_create_game.cfg | 1 + 2 files changed, 2 insertions(+) diff --git a/changelog.md b/changelog.md index b42976f79e4..7ed7670a047 100644 --- a/changelog.md +++ b/changelog.md @@ -67,6 +67,7 @@ * Improved MP Lobby layout on low resolutions. * Improved reporting of network errors in the MP lobby (issue #3005). * Ensure the chat widget remains the correct size even after a window resize. + * Custom MP game names are now capped at 50 characters. ### WML engine * Support formula= key in [variable] ConditionalWML * Support to_location in [move_unit], taking a location ID diff --git a/data/gui/window/mp_create_game.cfg b/data/gui/window/mp_create_game.cfg index 957461b85c1..c2363a54e89 100644 --- a/data/gui/window/mp_create_game.cfg +++ b/data/gui/window/mp_create_game.cfg @@ -968,6 +968,7 @@ [text_box] id = "game_name" definition = "default" + max_input_length = 50 [/text_box] [/column]