diff options
author | rubidium <rubidium@openttd.org> | 2010-12-05 22:24:20 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-05 22:24:20 +0000 |
commit | ab9cc74ba5cdbb6784f26d354ab4999d605a5ebb (patch) | |
tree | f1b363ac42fb3f6d10f9881e98e2391aa708a302 /src/engine_type.h | |
parent | 091263317e7eb8a882813a11f6da53058c266df5 (diff) | |
download | openttd-ab9cc74ba5cdbb6784f26d354ab4999d605a5ebb.tar.xz |
(svn r21410) -Codechange: limit engine name by amount of characters, not bytes
Diffstat (limited to 'src/engine_type.h')
-rw-r--r-- | src/engine_type.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine_type.h b/src/engine_type.h index 8c4ee9b7b..6fbede6ab 100644 --- a/src/engine_type.h +++ b/src/engine_type.h @@ -146,7 +146,7 @@ enum EngineFlags { }; static const uint NUM_VEHICLE_TYPES = 6; -static const uint MAX_LENGTH_ENGINE_NAME_BYTES = 31; ///< The maximum length of an engine name in bytes including '\0' +static const uint MAX_LENGTH_ENGINE_NAME_CHARS = 31; ///< The maximum length of an engine name in characters including '\0' static const uint MAX_LENGTH_ENGINE_NAME_PIXELS = 160; ///< The maximum length of an engine name in pixels static const EngineID INVALID_ENGINE = 0xFFFF; |