From 97c184f8f8265cf59b24ab3081a032c7162afcb5 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 13 Aug 2008 06:05:01 +0000 Subject: (svn r14063) -Codechange: replace some "magic" constants with enumified constants. --- src/vehicle_type.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/vehicle_type.h') diff --git a/src/vehicle_type.h b/src/vehicle_type.h index 79495cd1c..6a9d7c060 100644 --- a/src/vehicle_type.h +++ b/src/vehicle_type.h @@ -56,4 +56,9 @@ enum DepotCommand { DEPOT_COMMAND_MASK = 0xF, }; +enum { + MAX_LENGTH_VEHICLE_NAME_BYTES = 31, ///< The maximum length of a vehicle name in bytes including '\0' + MAX_LENGTH_VEHICLE_NAME_PIXELS = 150, ///< The maximum length of a vehicle name in pixels +}; + #endif /* VEHICLE_TYPE_H */ -- cgit v1.2.3-54-g00ecf