X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fnotifications%2Fall.qc;h=c8bcb6a68df6c172b4c2812978dcc34be18ccf71;hb=21b5bc2e99e973f9e35bdba88aaf927a9b51c10c;hp=685febf0fdfbdab915e8c516ca8baaef3e8502c0;hpb=d41d86bd2ecfd7e7152baef4d592d91c5fb15f6b;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/notifications/all.qc b/qcsrc/common/notifications/all.qc index 685febf0f..c8bcb6a68 100644 --- a/qcsrc/common/notifications/all.qc +++ b/qcsrc/common/notifications/all.qc @@ -1200,7 +1200,8 @@ void Local_Notification_Queue_Add(MSG net_type, entity notif, float queue_time) if(queue_time == -1 || time > notif_queue_next_time) { // Run immediately Local_Notification_Queue_Run(net_type, notif); - notif_queue_next_time = time + queue_time; + if(queue_time >= 0) + notif_queue_next_time = time + (queue_time == 0 ? soundlength(AnnouncerFilename(notif.nent_snd)) : queue_time); } else { // Put in queue if(notif_queue_length >= NOTIF_QUEUE_MAX) return;