From 3611d1f0d96b37bef9d4ca79c438de29f3536a6e Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Fri, 23 Aug 2013 15:59:20 -0400 Subject: [PATCH] Small cleanup --- qcsrc/common/notifications.qc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc index 98e13c546..dbfe88258 100644 --- a/qcsrc/common/notifications.qc +++ b/qcsrc/common/notifications.qc @@ -478,7 +478,6 @@ void Create_Notification_Entity( // Global Entity Setup // ===================== entity notif = spawn(); - string typestring = ""; switch(typeid) { case MSG_ANNCE: @@ -526,12 +525,12 @@ void Create_Notification_Entity( } } notif.nent_default = var_default; - notif.nent_name = strzone(namestring); + notif.nent_enabled = (1 <= var_cvar); notif.nent_type = typeid; notif.nent_id = nameid; - notif.nent_enabled = (1 <= var_cvar); - - typestring = Get_Notif_TypeName(typeid); + notif.nent_name = strzone(namestring); + + string typestring = Get_Notif_TypeName(typeid); // Other pre-notif-setup requisites notif_error = FALSE; -- 2.39.2