Permalink
Browse files

structs are structs, classes are classes

  • Loading branch information...
1 parent 4dfcfc6 commit c2f75b0017f7244b40f109926c48a0484b575ae8 @Choupom Choupom committed with oy Apr 19, 2011
@@ -32,20 +32,20 @@ class CRegister
int m_RegisterFirst;
int m_RegisterCount;
- class CMasterserverInfo m_aMasterserverInfo[IMasterServer::MAX_MASTERSERVERS];
+ CMasterserverInfo m_aMasterserverInfo[IMasterServer::MAX_MASTERSERVERS];
int m_RegisterRegisteredServer;
void RegisterNewState(int State);
void RegisterSendFwcheckresponse(NETADDR *pAddr);
void RegisterSendHeartbeat(NETADDR Addr);
void RegisterSendCountRequest(NETADDR Addr);
- void RegisterGotCount(class CNetChunk *pChunk);
+ void RegisterGotCount(struct CNetChunk *pChunk);
public:
CRegister();
void Init(class CNetServer *pNetServer, class IEngineMasterServer *pMasterServer, class IConsole *pConsole);
void RegisterUpdate(int Nettype);
- int RegisterProcessPacket(class CNetChunk *pPacket);
+ int RegisterProcessPacket(struct CNetChunk *pPacket);
};
#endif
@@ -36,7 +36,7 @@ class CConsole : public IConsole
{
public:
const char *m_pFilename;
- struct CExecFile *m_pPrev;
+ CExecFile *m_pPrev;
};
CExecFile *m_pFirstExec;
@@ -6,7 +6,7 @@
// raw datafile access
class CDataFileReader
{
- class CDatafile *m_pDataFile;
+ struct CDatafile *m_pDataFile;
void *GetDataImpl(int Index, int Swap);
public:
CDataFileReader() : m_pDataFile(0) {}
@@ -30,7 +30,7 @@ class CMapChecker
public:
CMapChecker();
- void AddMaplist(class CMapVersion *pMaplist, int Num);
+ void AddMaplist(struct CMapVersion *pMaplist, int Num);
bool IsMapValid(const char *pMapName, unsigned MapCrc, unsigned MapSize);
bool ReadAndValidateMap(class IStorage *pStorage, const char *pFilename, int StorageType);
};
@@ -192,7 +192,7 @@ class CNetConnection
int AckSequence() const { return m_Ack; }
};
-struct CNetRecvUnpacker
+class CNetRecvUnpacker
{
public:
bool m_Valid;
@@ -222,13 +222,13 @@ class CNetServer
};
private:
- class CSlot
+ struct CSlot
{
public:
CNetConnection m_Connection;
};
- class CBan
+ struct CBan
{
public:
CBanInfo m_Info;

0 comments on commit c2f75b0

Please sign in to comment.