From ace85d99c8a924686c6dbcdc13e91dbd8078462d Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 10 Jun 2011 22:48:49 +0000 Subject: Added support for piece names longer than 8 characters. git-svn-id: http://svn.leocad.org/branches/leocad-0.75@970 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- common/pieceinf.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common/pieceinf.h') diff --git a/common/pieceinf.h b/common/pieceinf.h index 56892c8..d94bc80 100644 --- a/common/pieceinf.h +++ b/common/pieceinf.h @@ -18,6 +18,8 @@ #define LC_PIECE_MEDIUM 0x20 // scale = 1000 (otherwise = 100) #define LC_PIECE_LONGDATA_RUNTIME 0x40 // If the original data is 16 bits but we expanded to 32 bits +#define LC_PIECE_NAME_LEN 256 + class File; class Texture; @@ -99,7 +101,7 @@ class PieceInfo public: // Attributes - char m_strName[9]; + char m_strName[LC_PIECE_NAME_LEN]; char m_strDescription[65]; float m_fDimensions[6]; unsigned long m_nOffset; -- cgit v1.2.3