From 9a1805064654d5f0e348f8a7b990532bfb66921a Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 5 Dec 2010 22:23:50 +0000 Subject: (svn r21408) -Codechange: limit president name by amount of characters, not bytes --- src/company_type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/company_type.h') diff --git a/src/company_type.h b/src/company_type.h index 77d73ed1f..7e308b6f7 100644 --- a/src/company_type.h +++ b/src/company_type.h @@ -37,7 +37,7 @@ enum Owner { }; DECLARE_POSTFIX_INCREMENT(Owner) -static const uint MAX_LENGTH_PRESIDENT_NAME_BYTES = 31; ///< The maximum length of a president name in bytes including '\0' +static const uint MAX_LENGTH_PRESIDENT_NAME_CHARS = 31; ///< The maximum length of a president name in characters including '\0' static const uint MAX_LENGTH_PRESIDENT_NAME_PIXELS = 94; ///< The maximum length of a president name in pixels static const uint MAX_LENGTH_COMPANY_NAME_BYTES = 31; ///< The maximum length of a company name in bytes including '\0' static const uint MAX_LENGTH_COMPANY_NAME_PIXELS = 150; ///< The maximum length of a company name in pixels -- cgit v1.2.3-54-g00ecf