From: Samual Lenks Date: Fri, 23 Aug 2013 19:59:20 +0000 (-0400) Subject: Small cleanup X-Git-Tag: xonotic-v0.8.0~341^2~19 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3611d1f0d96b37bef9d4ca79c438de29f3536a6e;p=xonotic%2Fxonotic-data.pk3dir.git Small cleanup --- 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;