mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
fixed some warnings
This commit is contained in:
parent
6410f26c70
commit
6bea95dbfa
|
@ -430,7 +430,7 @@ void CChat::AddLine(int ClientID, int Mode, const char *pLine)
|
||||||
{
|
{
|
||||||
int Length = str_length(m_pClient->m_aClients[m_pClient->m_LocalClientID].m_aName);
|
int Length = str_length(m_pClient->m_aClients[m_pClient->m_LocalClientID].m_aName);
|
||||||
if((pLine == pHL || pHL[-1] == ' ') // space or nothing before
|
if((pLine == pHL || pHL[-1] == ' ') // space or nothing before
|
||||||
&& ((pHL[Length] == 0 || pHL[Length] == ' ') || pHL[Length] == ':' && (pHL[Length+1] == 0) || pHL[Length+1] == ' ')) // space or nothing after, allowing a colon
|
&& (((pHL[Length] == 0 || pHL[Length] == ' ') || pHL[Length] == ':') && (pHL[Length+1] == 0 || pHL[Length+1] == ' '))) // space or nothing after, allowing a colon
|
||||||
{
|
{
|
||||||
Highlighted = true;
|
Highlighted = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -135,7 +135,7 @@ void CMenus::CBrowserFilter::SetFilter(const CServerFilterInfo *pFilterInfo)
|
||||||
void CMenus::LoadFilters()
|
void CMenus::LoadFilters()
|
||||||
{
|
{
|
||||||
// read file data into buffer
|
// read file data into buffer
|
||||||
char *pFilename = "ui_settings.json";
|
const char *pFilename = "ui_settings.json";
|
||||||
IOHANDLE File = Storage()->OpenFile(pFilename, IOFLAG_READ, IStorage::TYPE_ALL);
|
IOHANDLE File = Storage()->OpenFile(pFilename, IOFLAG_READ, IStorage::TYPE_ALL);
|
||||||
if(!File)
|
if(!File)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1236,7 +1236,6 @@ bool CMenus::DoResolutionList(CUIRect* pRect, CListBoxState* pListBoxState,
|
||||||
|
|
||||||
void CMenus::RenderSettingsGraphics(CUIRect MainView)
|
void CMenus::RenderSettingsGraphics(CUIRect MainView)
|
||||||
{
|
{
|
||||||
char aBuf[128];
|
|
||||||
bool CheckSettings = false;
|
bool CheckSettings = false;
|
||||||
|
|
||||||
static int s_GfxScreenWidth = g_Config.m_GfxScreenWidth;
|
static int s_GfxScreenWidth = g_Config.m_GfxScreenWidth;
|
||||||
|
|
Loading…
Reference in a new issue