From: DaveG <da...@us...> - 2006-06-01 18:32:59
|
Update of /cvsroot/planeshift/planeshift/src/common/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1664/src/common/util Modified Files: log.cpp log.h Log Message: making some debug messages optional; NPC dialogue is under LOG_NPC and added LOG_CACHE for the cache Index: log.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/common/util/log.cpp,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** log.cpp 28 Mar 2006 04:41:38 -0000 1.53 --- log.cpp 1 Jun 2006 18:32:44 -0000 1.54 *************** *** 59,63 **** "LOG_SCRIPT", "LOG_MARRIAGE", ! "LOG_MESSAGES" }; // End of flagnames --- 59,64 ---- "LOG_SCRIPT", "LOG_MARRIAGE", ! "LOG_MESSAGES", ! "LOG_CACHE" }; // End of flagnames *************** *** 89,93 **** "Planeshift.Log.Script", "Planeshift.Log.Marriage", ! "Planeshift.Log.Messages" }; // End of flagsettings --- 90,95 ---- "Planeshift.Log.Script", "Planeshift.Log.Marriage", ! "Planeshift.Log.Messages", ! "Planeshift.Log.Cache" }; // End of flagsettings *************** *** 182,189 **** for (int i=0; i<MAX_FLAGS; i++) { ! if (!name || !strcmp(flagnames[i],name)) ! { ! CPrintf(CON_CMDOUTPUT, "%s = %s.\n",flagnames[i],disp_flag[i]?"true":"false"); ! } } } --- 184,191 ---- for (int i=0; i<MAX_FLAGS; i++) { ! if (!name || !strcmp(flagnames[i],name)) ! { ! CPrintf(CON_CMDOUTPUT, "%s = %s.\n",flagnames[i],disp_flag[i]?"true":"false"); ! } } } Index: log.h =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/common/util/log.h,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** log.h 17 Jan 2006 10:49:16 -0000 1.38 --- log.h 1 Jun 2006 18:32:44 -0000 1.39 *************** *** 30,41 **** enum LOG_TYPES { ! LOG_ANY , ! LOG_WEATHER , ! LOG_SPAWN , LOG_CELPERSIST, ! LOG_PAWS , ! LOG_GROUP , ! LOG_CHEAT , ! LOG_LINMOVE , LOG_SPELLS, LOG_NEWCHAR, --- 30,41 ---- enum LOG_TYPES { ! LOG_ANY, ! LOG_WEATHER, ! LOG_SPAWN, LOG_CELPERSIST, ! LOG_PAWS, ! LOG_GROUP, ! LOG_CHEAT, ! LOG_LINMOVE, LOG_SPELLS, LOG_NEWCHAR, *************** *** 58,63 **** LOG_MARRIAGE, LOG_MESSAGES, MAX_FLAGS ! // NOTE: Remember to update the flagnams table in log.cpp when addning new entries }; --- 58,64 ---- LOG_MARRIAGE, LOG_MESSAGES, + LOG_CACHE, MAX_FLAGS ! // NOTE: Remember to update the flagnames table in log.cpp when addning new entries }; |