fixed some warnings

This commit is contained in:
oy 2018-10-27 17:48:47 +02:00
parent 6410f26c70
commit 6bea95dbfa
3 changed files with 2 additions and 3 deletions

View file

@ -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);
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;
}

View file

@ -135,7 +135,7 @@ void CMenus::CBrowserFilter::SetFilter(const CServerFilterInfo *pFilterInfo)
void CMenus::LoadFilters()
{
// 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);
if(!File)
return;

View file

@ -1236,7 +1236,6 @@ bool CMenus::DoResolutionList(CUIRect* pRect, CListBoxState* pListBoxState,
void CMenus::RenderSettingsGraphics(CUIRect MainView)
{
char aBuf[128];
bool CheckSettings = false;
static int s_GfxScreenWidth = g_Config.m_GfxScreenWidth;