mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Fixed some compiler warnings
This commit is contained in:
parent
8625f42e30
commit
be5e19d2bd
|
@ -554,9 +554,9 @@ void CServer::SendMap(int ClientId)
|
||||||
{
|
{
|
||||||
//get the name of the map without his path
|
//get the name of the map without his path
|
||||||
char * pMapShortName = &g_Config.m_SvMap[0];
|
char * pMapShortName = &g_Config.m_SvMap[0];
|
||||||
for(int i = 0; i < 128; i++)
|
for(int i = 0; i < 127; i++)
|
||||||
{
|
{
|
||||||
if(g_Config.m_SvMap[i] == '/' || g_Config.m_SvMap[i] == '\\' && i+1 < 128)
|
if(g_Config.m_SvMap[i] == '/' || g_Config.m_SvMap[i] == '\\')
|
||||||
pMapShortName = &g_Config.m_SvMap[i+1];
|
pMapShortName = &g_Config.m_SvMap[i+1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -519,6 +519,6 @@ void CMenus::DemoSetParentDirectory()
|
||||||
for(i = 0; i < 256; i++)
|
for(i = 0; i < 256; i++)
|
||||||
{
|
{
|
||||||
if(i >= Stop)
|
if(i >= Stop)
|
||||||
m_aCurrentDemoFolder[i] = NULL;
|
m_aCurrentDemoFolder[i] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue