From 32d73a556bb77fdd83a98a9019797e753bc0fc41 Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Fri, 22 Feb 2013 00:18:54 -0500 Subject: [PATCH] More cleaning of comments and stuff --- qcsrc/common/notifications.qc | 24 ++++++++++++++++-------- qcsrc/common/notifications.qh | 4 ++-- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc index 2e78ce4ab..5054e863c 100644 --- a/qcsrc/common/notifications.qc +++ b/qcsrc/common/notifications.qc @@ -68,30 +68,38 @@ void Dump_Notifications(float fh, float alsoprint) // it is just a semi-helpful tool for those who want to manually change their user settings. NOTIF_WRITE(sprintf("\n// MSG_INFO notifications (count = %d):\n", NOTIF_INFO_COUNT)); - for(i = 1; i <= NOTIF_INFO_COUNT; ++i) { + for(i = 1; i <= NOTIF_INFO_COUNT; ++i) + { e = Get_Notif_Ent(MSG_INFO, i); if not(e) { backtrace("Dump_Notifications(): Missing notification entity!\n"); return; } - NOTIF_WRITE_SETA(e.nent_name, e.nent_default, e.nent_string); } + NOTIF_WRITE_SETA(e.nent_name, e.nent_default, e.nent_string); + } NOTIF_WRITE(sprintf("\n// MSG_CENTER notifications (count = %d):\n", NOTIF_CENTER_COUNT)); - for(i = 1; i <= NOTIF_CENTER_COUNT; ++i) { + for(i = 1; i <= NOTIF_CENTER_COUNT; ++i) + { e = Get_Notif_Ent(MSG_CENTER, i); if not(e) { backtrace("Dump_Notifications(): Missing notification entity!\n"); return; } - NOTIF_WRITE_SETA(e.nent_name, e.nent_default, e.nent_string); } + NOTIF_WRITE_SETA(e.nent_name, e.nent_default, e.nent_string); + } NOTIF_WRITE(sprintf("\n// MSG_WEAPON notifications (count = %d):\n", NOTIF_WEAPON_COUNT)); - for(i = 1; i <= NOTIF_WEAPON_COUNT; ++i) { + for(i = 1; i <= NOTIF_WEAPON_COUNT; ++i) + { e = Get_Notif_Ent(MSG_WEAPON, i); if not(e) { backtrace("Dump_Notifications(): Missing notification entity!\n"); return; } NOTIF_WRITE_SETA(e.nent_name, e.nent_default, sprintf("infoname: %s, centername: %s", - e.nent_msginfo.nent_name, e.nent_msgcenter.nent_name)); } + e.nent_msginfo.nent_name, e.nent_msgcenter.nent_name)); + } NOTIF_WRITE(sprintf("\n// MSG_DEATH notifications (count = %d):\n", NOTIF_DEATH_COUNT)); - for(i = 1; i <= NOTIF_DEATH_COUNT; ++i) { + for(i = 1; i <= NOTIF_DEATH_COUNT; ++i) + { e = Get_Notif_Ent(MSG_DEATH, i); if not(e) { backtrace("Dump_Notifications(): Missing notification entity!\n"); return; } NOTIF_WRITE_SETA(e.nent_name, e.nent_default, sprintf("infoname: %s, centername: %s", - e.nent_msginfo.nent_name, e.nent_msgcenter.nent_name)); } + e.nent_msginfo.nent_name, e.nent_msgcenter.nent_name)); + } // edit these to match whichever cvars are used for specific notification options NOTIF_WRITE("\n// HARD CODED notification variables:\n"); diff --git a/qcsrc/common/notifications.qh b/qcsrc/common/notifications.qh index 3472b3a55..240e07484 100644 --- a/qcsrc/common/notifications.qh +++ b/qcsrc/common/notifications.qh @@ -13,8 +13,8 @@ // Current version number of the configuration file for notifications... // This is used to check matches between the config file and the code, -// and should be incremented any time you add a new/remove or edit an notification -// or any time you change default values or add/edit/remove a special cvar. +// and should be incremented with any new notifications or any other changes +// to notification cvars, notification list, or notificiation config. #define NOTIF_VERSION 3 #define EIGHT_VARS_TO_VARARGS_VARLIST \ -- 2.39.2