diff --git a/reaction/cgame/cg_servercmds.c b/reaction/cgame/cg_servercmds.c index cc4adf70..3a43e367 100644 --- a/reaction/cgame/cg_servercmds.c +++ b/reaction/cgame/cg_servercmds.c @@ -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; diff --git a/reaction/cgame/cg_view.c b/reaction/cgame/cg_view.c index 70121a23..9c47fd87 100644 --- a/reaction/cgame/cg_view.c +++ b/reaction/cgame/cg_view.c @@ -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);