summaryrefslogtreecommitdiff
path: root/common/pieceinf.h
diff options
context:
space:
mode:
authorleo2011-06-10 22:48:49 +0000
committerleo2011-06-10 22:48:49 +0000
commitace85d99c8a924686c6dbcdc13e91dbd8078462d (patch)
treed4d40844eb8edf0636bbd6dc0a26cba62c0920e5 /common/pieceinf.h
parent052c3f118feda994abfa0929c3bd2939d59fa0f8 (diff)
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
Diffstat (limited to 'common/pieceinf.h')
-rw-r--r--common/pieceinf.h4
1 files changed, 3 insertions, 1 deletions
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;