Files @ r10044:a1e2a7856c4e
Branch filter:

Location: cpp/openttd-patchpack/source/src/signs_type.h

smatz
(svn r14204) -Fix (r7475): when determining length of a string with limited size, first check if we are not out of bounds already
/* $Id$ */

/** @file signs_type.h Types related to signs */

#ifndef SIGNS_TYPE_H
#define SIGNS_TYPE_H

typedef uint16 SignID;
struct Sign;

enum {
	INVALID_SIGN = 0xFFFF,

	MAX_LENGTH_SIGN_NAME_BYTES  =  31, ///< The maximum length of a sign name in bytes including '\0'
	MAX_LENGTH_SIGN_NAME_PIXELS = 255, ///< The maximum length of a sign name in pixels
};

#endif /* SIGNS_TYPE_H */