]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't need these either
authorSamual Lenks <samual@xonotic.org>
Sat, 16 Feb 2013 22:43:40 +0000 (17:43 -0500)
committerSamual Lenks <samual@xonotic.org>
Sat, 16 Feb 2013 22:43:40 +0000 (17:43 -0500)
qcsrc/common/notifications.qc
qcsrc/common/notifications.qh

index 3de641a940e70f235c75e706ca19c47788d53a1f..d5f1ffa88e984d52845e5adf64d9ee8eefdb521a 100644 (file)
@@ -16,30 +16,6 @@ entity Get_Notif_Ent(float net_type, float net_name)
        backtrace(sprintf("Get_Notif_Ent(%d, %d): Improper net type!\n", net_type, net_name));
        return world;
 }
-
-string Get_Notif_Name(float net_type, float net_name)
-{
-       entity e = Get_Notif_Ent(net_type, net_name);
-       if(e) { return e.nent_name; }
-       backtrace(sprintf("Get_Notif_Name(%d, %d): Could not find entity!\n", net_type, net_name));
-       return "";
-}
-
-float Get_Notif_Infval(float net_type, float net_name)
-{
-       entity e = Get_Notif_Ent(net_type, net_name);
-       if(e) { return e.nent_infoname; }
-       backtrace(sprintf("Get_Notif_Infval(%d, %d): Could not find entity!\n", net_type, net_name));
-       return NO_MSG;
-}
-
-float Get_Notif_Cenval(float net_type, float net_name)
-{
-       entity e = Get_Notif_Ent(net_type, net_name);
-       if(e) { return e.nent_centername; }
-       backtrace(sprintf("Get_Notif_Cenval(%d, %d): Could not find entity!\n", net_type, net_name));
-       return NO_MSG;
-}
 #endif // ifndef MENUQC
 
 
@@ -73,14 +49,14 @@ void Dump_Notifications(float fh, float alsoprint)
        for(i = 0; i < NOTIF_WEAPON_COUNT; ++i) {
                e = Get_Notif_Ent(MSG_WEAPON, i);
                NOTIF_WRITE(MSG_WEAPON, e.nent_name, sprintf("infoname: %s, centername: %s",
-                       Get_Notif_Name(MSG_INFO, Get_Notif_Infval(MSG_WEAPON, i)),
-                       Get_Notif_Name(MSG_CENTER, Get_Notif_Cenval(MSG_WEAPON, i)) ) ); }
+                       msg_info_notifs[msg_weapon_notifs[i - 1].nent_infoname - 1].nent_name,
+                       msg_center_notifs[msg_weapon_notifs[i - 1].nent_centername - 1].nent_name)); }
                
        for(i = 0; i < NOTIF_DEATH_COUNT; ++i) {
                e = Get_Notif_Ent(MSG_DEATH, i);
                NOTIF_WRITE(MSG_DEATH, e.nent_name, sprintf("infoname: %s, centername: %s",
-                       Get_Notif_Name(MSG_INFO, Get_Notif_Infval(MSG_DEATH, i)),
-                       Get_Notif_Name(MSG_CENTER, Get_Notif_Cenval(MSG_DEATH, i)) ) ); }
+                       msg_info_notifs[msg_death_notifs[i - 1].nent_infoname - 1].nent_name,
+                       msg_center_notifs[msg_death_notifs[i - 1].nent_centername - 1].nent_name)); }
                
        #endif
 
@@ -267,7 +243,6 @@ void Local_Notification_Without_VarArgs(float net_type, float net_name,
        #define VARITEM(stringc,floatc,args) if((stringcount == stringc) && (floatcount == floatc)) { Local_Notification(net_type, net_name, args); return; }
        EIGHT_VARS_TO_VARARGS_VARLIST
        #undef VARITEM
-
        Local_Notification(net_type, net_name); // some notifications don't have any arguments at all
 }
 
index 586df205fa281d94527235e49f81d38e21b37222..9ffa908db565fb0639ab64ecc93f5706e7676f76 100644 (file)
        ARG_CASE(ARG_SVQC, "weapon_name",               ftos(f1))
 
 entity Get_Notif_Ent(float net_type, float net_name);
-string Get_Notif_Name(float net_type, float net_name);
-float Get_Notif_Infval(float net_type, float net_name);
-float Get_Notif_Cenval(float net_type, float net_name);
-float Get_Notif_Strnum(float net_type, float net_name);
-float Get_Notif_Flnum(float net_type, float net_name);
 
 string arg_slot[7];