-
Error in Previous Code
The first entry of CCompressTree should be the class CCompressBranch. I accidentally
put CCompressTree in twice.
class CCompressBranch
{
// For compressing/decompressing stuff from game server to client.
friend class CCompressTree;
private:
int m_Value; // -1=tree branch, 0-255=character value, 256=PROXY_BRANCH_QTY-1=end
CCompressBranch *m_pZero;
CCompressBranch *m_pOne;
private:
CCompressBranch()
{
m_Value=-1; // just a pass thru branch til later.
m_pZero=NULL;
m_pOne=NULL;
}
~CCompressBranch()
{
if ( m_pOne != NULL )
delete m_pOne;
if ( m_pZero != NULL )
delete m_pZero;
}
bool IsLoaded() const
{
return( m_pZero != NULL );
}
};
Thank you,
-Brian Moraca
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|