mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
Added parentheses around some assignments (where they're meant to assign instead of compare in an if statement) which GCC was giving this warning "warning: suggest parentheses around assignment used as truth value"
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3803 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
d33090b7ee
commit
fc421a05bc
3 changed files with 8 additions and 8 deletions
|
@ -695,11 +695,11 @@ qboolean CL_CheckHLBspWads(char *file)
|
|||
if (!strcmp(key, "wad"))
|
||||
{
|
||||
s = wads;
|
||||
while (s = COM_ParseToken(s, ";"))
|
||||
while ((s = COM_ParseToken(s, ";")))
|
||||
{
|
||||
if (!strcmp(com_token, ";"))
|
||||
continue;
|
||||
while (w = strchr(com_token, '\\'))
|
||||
while ((w = strchr(com_token, '\\')))
|
||||
*w = '/';
|
||||
w = COM_SkipPath(com_token);
|
||||
Con_Printf("wads: %s\n", w);
|
||||
|
|
|
@ -1890,7 +1890,7 @@ static qboolean Sys_SteamHasFile(char *basepath, int basepathlen, char *steamdir
|
|||
RegQueryValueEx(key, "SteamPath", NULL, NULL, basepath, &resultlen);
|
||||
RegCloseKey(key);
|
||||
Q_strncatz(basepath, va("/SteamApps/common/%s", steamdir), basepathlen);
|
||||
if (f = fopen(va("%s/%s", basepath, fname), "rb"))
|
||||
if ((f = fopen(va("%s/%s", basepath, fname), "rb")))
|
||||
{
|
||||
fclose(f);
|
||||
return true;
|
||||
|
@ -1937,7 +1937,7 @@ qboolean Sys_FindGameData(const char *poshname, const char *gamename, char *base
|
|||
//well, okay, so they don't have quake installed from steam.
|
||||
|
||||
//quite a lot of people have it in c:\quake, as that's the default install location from the quake cd.
|
||||
if (f = fopen("c:/quake/quake.exe", "rb"))
|
||||
if ((f = fopen("c:/quake/quake.exe", "rb")))
|
||||
{
|
||||
//HAHAHA! Found it!
|
||||
fclose(f);
|
||||
|
@ -1958,7 +1958,7 @@ qboolean Sys_FindGameData(const char *poshname, const char *gamename, char *base
|
|||
resultlen = basepathlen;
|
||||
RegQueryValueEx(key, "Path", NULL, NULL, basepath, &resultlen);
|
||||
RegCloseKey(key);
|
||||
if (f = fopen(va("%s/quake2.exe", basepath), "rb"))
|
||||
if ((f = fopen(va("%s/quake2.exe", basepath), "rb")))
|
||||
{
|
||||
fclose(f);
|
||||
return true;
|
||||
|
@ -1981,7 +1981,7 @@ qboolean Sys_FindGameData(const char *poshname, const char *gamename, char *base
|
|||
RegQueryValueEx(key, "InstallPath", NULL, NULL, basepath, &resultlen);
|
||||
RegCloseKey(key);
|
||||
|
||||
if (f = fopen(va("%s/ET.exe", basepath), "rb"))
|
||||
if ((f = fopen(va("%s/ET.exe", basepath), "rb")))
|
||||
{
|
||||
fclose(f);
|
||||
return true;
|
||||
|
@ -2003,7 +2003,7 @@ qboolean Sys_FindGameData(const char *poshname, const char *gamename, char *base
|
|||
RegQueryValueEx(key, "InstallPath", NULL, NULL, basepath, &resultlen);
|
||||
RegCloseKey(key);
|
||||
|
||||
if (f = fopen(va("%s/quake3.exe", basepath), "rb"))
|
||||
if ((f = fopen(va("%s/quake3.exe", basepath), "rb")))
|
||||
{
|
||||
fclose(f);
|
||||
return true;
|
||||
|
|
|
@ -3220,7 +3220,7 @@ newstyle:
|
|||
|
||||
if (stat(destfile, &os) != -1)
|
||||
{
|
||||
while (pr_file_p=QCC_COM_Parse(pr_file_p))
|
||||
while ((pr_file_p=QCC_COM_Parse(pr_file_p)))
|
||||
{
|
||||
if (stat(qcc_token, &s) == -1 || s.st_mtime > os.st_mtime)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue