]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Small cleanup
authorSamual Lenks <samual@xonotic.org>
Fri, 23 Aug 2013 19:59:20 +0000 (15:59 -0400)
committerSamual Lenks <samual@xonotic.org>
Fri, 23 Aug 2013 19:59:20 +0000 (15:59 -0400)
qcsrc/common/notifications.qc

index 98e13c5468582a34168937f797b52d81a9184709..dbfe88258a042edb2852ccdac28e9717e5fe231a 100644 (file)
@@ -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;