]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/notifications.qc
Remove FRAG_VERBOSE here
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / notifications.qc
index 4ed4a1f6c5f33458158c9532a4c3689f3c3fc1c5..4693dfb4c059644f20f7ea029befe1e4bd91671b 100644 (file)
@@ -830,7 +830,7 @@ void Create_Notification_Entity(
 
                                        default:
                                        {
-                                               error(sprintf(
+                                               print(sprintf(
                                                        strcat(
                                                                "^1NOTIFICATION WITH IMPROPER TYPE: ",
                                                                "^7net_type = %d, net_name = %s.\n"
@@ -847,7 +847,7 @@ void Create_Notification_Entity(
                                notif.nent_stringcount = max(notif.nent_optiona.nent_stringcount, notif.nent_optionb.nent_stringcount);
                                notif.nent_floatcount = max(notif.nent_optiona.nent_floatcount, notif.nent_optionb.nent_floatcount);
                                
-                               #ifdef NOTIFICATIONS_DEBUG
+                               /*#ifdef NOTIFICATIONS_DEBUG
                                Debug_Notification(sprintf(
                                        "Create_Notification_Entity(...): MSG_CHOICE: %s\n%s\n%s\n",
                                        notif.nent_name,
@@ -866,12 +866,24 @@ void Create_Notification_Entity(
                                                notif.nent_optionb.nent_floatcount
                                        )
                                ));
-                               #endif
+                               #endif*/
                        }
                        break;
                }
                
-               default: print("DAFUQ?\n"); notif_error = TRUE; break;
+               default:
+               {
+                       print(sprintf(
+                               strcat(
+                                       "^1NOTIFICATION WITH IMPROPER TYPE: ",
+                                       "^7net_type = %d, net_name = %s.\n"
+                               ),
+                               typeid,
+                               namestring
+                       ));
+                       notif_error = TRUE;
+                       break;
+               }
        }
 
        // now check to see if any errors happened 
@@ -901,8 +913,6 @@ void Notification_GetCvars(void)
                        sprintf("notification_%s", msg_choice_notifs[i].nent_name)
                );
        }
-
-       GetCvars_handleFloat(get_cvars_s, get_cvars_f, FRAG_VERBOSE, "notification_frag_verbose");
 }
 #endif