|
From: <cn...@us...> - 2024-03-12 02:55:08
|
Revision: 1452
http://sourceforge.net/p/seq/svn/1452
Author: cn187
Date: 2024-03-12 02:55:06 +0000 (Tue, 12 Mar 2024)
Log Message:
-----------
Do not alert on filtered spawns
Thanks Xerces for reporting this.
Modified Paths:
--------------
showeq/trunk/src/filternotifications.cpp
Modified: showeq/trunk/src/filternotifications.cpp
===================================================================
--- showeq/trunk/src/filternotifications.cpp 2024-03-12 02:54:59 UTC (rev 1451)
+++ showeq/trunk/src/filternotifications.cpp 2024-03-12 02:55:06 UTC (rev 1452)
@@ -68,6 +68,10 @@
{
uint32_t filterFlags = item->filterFlags();
+ // ignore filtered spawns
+ if (filterFlags & FILTER_FLAG_FILTERED)
+ return;
+
// first handle alert
if (filterFlags & FILTER_FLAG_ALERT)
handleAlert(item, "SpawnAudioCommand", "Spawned");
@@ -85,6 +89,10 @@
void FilterNotifications::delItem(const Item* item)
{
+ // ignore filtered spawns
+ if (item->filterFlags() & FILTER_FLAG_FILTERED)
+ return;
+
// first handle alert
if (item->filterFlags() & FILTER_FLAG_ALERT)
handleAlert(item, "DeSpawnAudioCommand", "Despawned");
@@ -92,6 +100,10 @@
void FilterNotifications::killSpawn(const Item* item)
{
+ // ignore filtered spawns
+ if (item->filterFlags() & FILTER_FLAG_FILTERED)
+ return;
+
// first handle alert
if (item->filterFlags() & FILTER_FLAG_ALERT)
handleAlert(item, "DeathAudioCommand", "Died");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|