mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-03-31 23:11:32 +00:00
Fixed a few more instances of strcmp(blah,NULL)
This commit is contained in:
parent
f9ea1c5555
commit
9e58e93ff0
2 changed files with 8 additions and 2 deletions
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.15 2002/01/12 20:00:49 hal9000
|
||||
// Fixed a few more instances of strcmp(blah,NULL)
|
||||
//
|
||||
// Revision 1.14 2002/01/11 20:20:58 jbravo
|
||||
// Adding TP to main branch
|
||||
//
|
||||
|
@ -1104,7 +1107,7 @@ static void CG_ServerCommand( void ) {
|
|||
//CG_Printf("1) %s %f %f\n", param, lowend, highend);
|
||||
for (i=0;i<30; i++)
|
||||
{
|
||||
if (!strcmp(cheats[i].cvar, NULL))
|
||||
if (!strcmp(cheats[i].cvar, ""))
|
||||
{
|
||||
Q_strncpyz( cheats[i].cvar, param, 40 );
|
||||
cheats[i].high = highend;
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.17 2002/01/12 20:00:49 hal9000
|
||||
// Fixed a few more instances of strcmp(blah,NULL)
|
||||
//
|
||||
// Revision 1.16 2002/01/11 19:48:29 jbravo
|
||||
// Formatted the source in non DOS format.
|
||||
//
|
||||
|
@ -1244,7 +1247,7 @@ void CG_DrawActiveFrame( int serverTime, stereoFrame_t stereoView, qboolean demo
|
|||
//Blaze: Check for invalid video settings.
|
||||
for(i=0;i<30;i++)
|
||||
{
|
||||
if (strcmp(cheats[i].cvar, NULL)!=0)
|
||||
if (strcmp(cheats[i].cvar, "")!=0)
|
||||
{
|
||||
cvar_val = CG_Cvar_Get(cheats[i].cvar);
|
||||
//CG_Printf("%s is set to %f\n",cheats[i].cvar, cvar_val);
|
||||
|
|
Loading…
Reference in a new issue