|
From: <cn...@us...> - 2023-07-28 20:07:53
|
Revision: 1415
http://sourceforge.net/p/seq/svn/1415
Author: cn187
Date: 2023-07-28 20:07:51 +0000 (Fri, 28 Jul 2023)
Log Message:
-----------
Do not alert on filtered spawns
Modified Paths:
--------------
showeq/branches/cn187_devel/src/filternotifications.cpp
Modified: showeq/branches/cn187_devel/src/filternotifications.cpp
===================================================================
--- showeq/branches/cn187_devel/src/filternotifications.cpp 2023-07-28 04:54:43 UTC (rev 1414)
+++ showeq/branches/cn187_devel/src/filternotifications.cpp 2023-07-28 20:07:51 UTC (rev 1415)
@@ -72,6 +72,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");
@@ -89,6 +93,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");
@@ -96,6 +104,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.
|