diff options
author | rubidium <rubidium@openttd.org> | 2010-12-05 22:25:21 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-05 22:25:21 +0000 |
commit | 5c9c3f1acf9a49b8da6fcbea0e4072750181a48c (patch) | |
tree | 2a5c4d4e8be234c7024da472f2fe9d5344417fe9 /src/town_type.h | |
parent | 6e69b943d685c3b485d415d4fce53af28f0eba85 (diff) | |
download | openttd-5c9c3f1acf9a49b8da6fcbea0e4072750181a48c.tar.xz |
(svn r21414) -Codechange: limit town name by amount of characters, not bytes
Diffstat (limited to 'src/town_type.h')
-rw-r--r-- | src/town_type.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_type.h b/src/town_type.h index 8af2af8e1..224df5ff9 100644 --- a/src/town_type.h +++ b/src/town_type.h @@ -105,7 +105,7 @@ enum TownFounding { /** It needs to be 8bits, because we save and load it as such */ typedef SimpleTinyEnumT<TownFounding, byte> TownFoundingByte; -static const uint MAX_LENGTH_TOWN_NAME_BYTES = 31; ///< The maximum length of a town name in bytes including '\0' +static const uint MAX_LENGTH_TOWN_NAME_CHARS = 31; ///< The maximum length of a town name in characters including '\0' static const uint MAX_LENGTH_TOWN_NAME_PIXELS = 130; ///< The maximum length of a town name in pixels #endif /* TOWN_TYPE_H */ |