From aa46c22e10f85285dae87454724d9b6ed161c9c3 Mon Sep 17 00:00:00 2001 From: Choupom Date: Sat, 18 Sep 2010 20:48:49 +0200 Subject: now put skins in an array to save memory --- src/game/client/components/skins.h | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'src/game/client/components/skins.h') diff --git a/src/game/client/components/skins.h b/src/game/client/components/skins.h index f733140f..08e8c5e0 100644 --- a/src/game/client/components/skins.h +++ b/src/game/client/components/skins.h @@ -1,6 +1,7 @@ #ifndef GAME_CLIENT_COMPONENTS_SKINS_H #define GAME_CLIENT_COMPONENTS_SKINS_H #include +#include #include class CSkins : public CComponent @@ -11,12 +12,9 @@ public: { int m_OrgTexture; int m_ColorTexture; - char m_aName[31]; - char m_aTerm[1]; + char m_aName[32]; vec3 m_BloodColor; - } ; - - CSkins(); + }; void Init(); @@ -26,13 +24,7 @@ public: int Find(const char *pName); private: - enum - { - MAX_SKINS=256, - }; - - CSkin m_aSkins[MAX_SKINS]; - int m_NumSkins; + array m_aSkins; static void SkinScan(const char *pName, int IsDir, void *pUser); }; -- cgit 1.4.1