]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Update debug prints for initialization
authorSamual Lenks <samual@xonotic.org>
Sat, 24 Aug 2013 23:52:26 +0000 (19:52 -0400)
committerSamual Lenks <samual@xonotic.org>
Sat, 24 Aug 2013 23:52:26 +0000 (19:52 -0400)
qcsrc/common/notifications.qc

index 13229891ca6d5e921bd0ef6d625f9e14cbee310e..92cecf25c48d68c9ce96550561225ad4541425ba 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"
@@ -871,7 +871,19 @@ void Create_Notification_Entity(
                        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