diff options
author | rubidium <rubidium@openttd.org> | 2008-08-13 06:05:01 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-08-13 06:05:01 +0000 |
commit | c816cc37fd01eb9b0842fd22cf5e79473d338c9f (patch) | |
tree | dd64aeafae6994a4ed4e2d23a71d62db7de1668f /src/engine_type.h | |
parent | 688267ad524c955567924294d0e066379994773b (diff) | |
download | openttd-c816cc37fd01eb9b0842fd22cf5e79473d338c9f.tar.xz |
(svn r14063) -Codechange: replace some "magic" constants with enumified constants.
Diffstat (limited to 'src/engine_type.h')
-rw-r--r-- | src/engine_type.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine_type.h b/src/engine_type.h index e6ed58377..38392d313 100644 --- a/src/engine_type.h +++ b/src/engine_type.h @@ -140,7 +140,9 @@ enum { }; enum { - NUM_VEHICLE_TYPES = 6 + NUM_VEHICLE_TYPES = 6, + MAX_LENGTH_ENGINE_NAME_BYTES = 31, ///< The maximum length of an engine name in bytes including '\0' + MAX_LENGTH_ENGINE_NAME_PIXELS = 160, ///< The maximum length of an engine name in pixels }; static const EngineID INVALID_ENGINE = 0xFFFF; |