Fix compiler warnings

git-svn-id: https://svn.eduke32.com/eduke32@4908 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2015-01-12 01:54:50 +00:00
parent 41a62ba96b
commit 35d72c80c1
2 changed files with 3 additions and 3 deletions

View file

@ -128,7 +128,7 @@ int32_t readmouseabsxy(vec2_t * const destination, vec2_t const * const source)
{
int32_t xwidth;
if (!moustat || !appactive || !mouseinwindow || osd && osd->flags & OSD_CAPTURE)
if (!moustat || !appactive || !mouseinwindow || (osd && osd->flags & OSD_CAPTURE))
return 0;
xwidth = max(scale(240<<16, xdim, ydim), 320<<16);
@ -141,7 +141,7 @@ int32_t readmouseabsxy(vec2_t * const destination, vec2_t const * const source)
void readmousebstatus(int32_t *b)
{
if (!moustat || !appactive || !mouseinwindow || osd && osd->flags & OSD_CAPTURE) { *b = 0; return; }
if (!moustat || !appactive || !mouseinwindow || (osd && osd->flags & OSD_CAPTURE)) { *b = 0; return; }
*b = mouseb;
}

View file

@ -101,7 +101,7 @@ static void win_printversion(void)
l = Bsprintf(str, "Windows %s", ver);
// service packs
if (osv.szCSDVersion && osv.szCSDVersion[0])
if (osv.szCSDVersion[0])
{
str[l] = 32;
Bstrcat(&str[l], osv.szCSDVersion);