mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 03:28:19 +00:00
Fix compile warnings
This commit is contained in:
parent
197ed5dca3
commit
4d4d8ad5e8
|
@ -1531,7 +1531,7 @@ int CServer::LoadMap(const char *pMapName)
|
||||||
// load complete map into memory for download
|
// load complete map into memory for download
|
||||||
{
|
{
|
||||||
IOHANDLE File = Storage()->OpenFile(aBuf, IOFLAG_READ, IStorage::TYPE_ALL);
|
IOHANDLE File = Storage()->OpenFile(aBuf, IOFLAG_READ, IStorage::TYPE_ALL);
|
||||||
m_CurrentMapSize = (int)io_length(File);
|
m_CurrentMapSize = (unsigned int)io_length(File);
|
||||||
if(m_pCurrentMapData)
|
if(m_pCurrentMapData)
|
||||||
mem_free(m_pCurrentMapData);
|
mem_free(m_pCurrentMapData);
|
||||||
m_pCurrentMapData = (unsigned char *)mem_alloc(m_CurrentMapSize, 1);
|
m_pCurrentMapData = (unsigned char *)mem_alloc(m_CurrentMapSize, 1);
|
||||||
|
|
|
@ -178,7 +178,7 @@ public:
|
||||||
char m_aCurrentMap[64];
|
char m_aCurrentMap[64];
|
||||||
unsigned m_CurrentMapCrc;
|
unsigned m_CurrentMapCrc;
|
||||||
unsigned char *m_pCurrentMapData;
|
unsigned char *m_pCurrentMapData;
|
||||||
int m_CurrentMapSize;
|
unsigned int m_CurrentMapSize;
|
||||||
|
|
||||||
CDemoRecorder m_aDemoRecorder[MAX_CLIENTS+1];
|
CDemoRecorder m_aDemoRecorder[MAX_CLIENTS+1];
|
||||||
CRegister m_Register;
|
CRegister m_Register;
|
||||||
|
|
Loading…
Reference in a new issue