NOTIF_WRITE("// ** ** //\n");
NOTIF_WRITE("// ********************************************** //\n");
- NOTIF_WRITE("\n// Version number to identify mismatches between code and config file...\n");
- NOTIF_WRITE("// Increment NOTIF_VERSION in common/notifications.qh with any\n");
- NOTIF_WRITE("// new notifications or other changes to notif cvars/this config.\n");
-
- NOTIF_WRITE(sprintf("set notification_version %d\n", NOTIF_VERSION));
-
// These notifications will also append their string as a comment...
// This is not necessary, and does not matter if they vary between config versions,
// it is just a semi-helpful tool for those who want to manually change their user settings.
#define NO_MSG -12345
-// 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 with any new notifications or any other changes
-// to notification cvars, notification list, or notificiation config.
-#define NOTIF_VERSION 4
-
#define EIGHT_VARS_TO_VARARGS_VARLIST \
VARITEM(1, 0, s1) \
VARITEM(2, 0, XPD(s1, s2)) \
#define NOTIF_ADD_AUTOCVAR(name,default) var float autocvar_notification_##name = default;
-var float autocvar_notification_version = NOTIF_VERSION;
var float autocvar_notification_show_sprees = TRUE;
var float autocvar_notification_show_sprees_info = 3; // 0 = off, 1 = target only, 2 = attacker only, 3 = target and attacker
var float autocvar_notification_show_sprees_info_newline = FALSE;
#ifdef SVQC
.float FRAG_VERBOSE;
void Notification_GetCvars(void);
-var float autocvar_notification_version_mismatch_server_error = TRUE;
#else
var float autocvar_notification_allow_chatboxprint = TRUE;
var float autocvar_notification_show_sprees_center = TRUE;
var float autocvar_notification_show_sprees_center_specialonly = TRUE;
var float autocvar_notification_frag_verbose = TRUE;
-var float autocvar_notification_version_mismatch_client_error = FALSE;
#endif
void RegisterNotifications_First()
{
notif_global_error = FALSE;
- if(autocvar_notification_version != NOTIF_VERSION)
+
+ // maybe do another implementation of this with checksums? for now, we don't need versioning
+ /*if(autocvar_notification_version != NOTIF_VERSION)
{
#ifdef CSQC
if(autocvar_notification_version_mismatch_client_error)
print(sprintf("^1NOTIFICATION VERSION MISMATCH: ^7program = %s, config = %d, code = %d.\n",
"foobar", autocvar_notification_version, NOTIF_VERSION));
- }
+ }*/
}
void RegisterNotifications_Done()