From a3fc0cf2f5ac1072a1221a54dc2e62b7a85c59b7 Mon Sep 17 00:00:00 2001 From: Rafael Barreto Date: Thu, 21 Oct 2010 22:36:46 +0000 Subject: [PATCH] at least 60 seconds before the next spam message git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5784 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/soundlocation.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/src/soundlocation.cpp b/source/src/soundlocation.cpp index 5f3b1d9c..691b2561 100644 --- a/source/src/soundlocation.cpp +++ b/source/src/soundlocation.cpp @@ -11,8 +11,8 @@ location::location(int sound, const worldobjreference &r, int priority) : cfg(NU vector &sounds = (r.type==worldobjreference::WR_ENTITY ? mapsounds : gamesounds); if(!sounds.inrange(sound)) { - if (warn_about_unregistered_sound) conoutf("\f3ERROR: this map contains an unregistered ambient sound (sound ID# %d)", sound); - warn_about_unregistered_sound = false; // don't spam the console, warn just once... how people are able to have this issue?! + if (warn_about_unregistered_sound) conoutf("you have at least one unregistered sound: %d", sound); + warn_about_unregistered_sound = false; // warn just once... how people are able to have this issue?! stale = true; return; } @@ -283,7 +283,7 @@ void locvector::forcepitch(float pitch) } } -// delete all sounds except world-neutral sounds like GUI/notification +// delete all sounds except world-neutral sounds like GUI/notifacation void locvector::deleteworldobjsounds() { loopv(*this)