From 7750a584c5d1487493a22144e54a3a0eeabae7ce Mon Sep 17 00:00:00 2001 From: RandumKiwi Date: Fri, 22 Oct 2010 20:23:52 +0000 Subject: [PATCH] Re-instate noob friendly sound-error message. Lower time to 30 secs (1min is too long). Typo fix. git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5786 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/soundlocation.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/src/soundlocation.cpp b/source/src/soundlocation.cpp index 480d758a..2ab8efa9 100644 --- a/source/src/soundlocation.cpp +++ b/source/src/soundlocation.cpp @@ -11,9 +11,10 @@ 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 (lastmillis - warn_about_unregistered_sound > 60 * 1000) // every minute + if (lastmillis - warn_about_unregistered_sound > 30 * 1000) // delay message to every 30 secs so console is not spammed. { - conoutf("you have at least one unregistered sound: %d", sound); + // occurs when a map contains an ambient sound entity, but sound entity is not found in map cfg file. + conoutf("\f3ERROR: this map contains at least one unregistered ambient sound (sound entity# %d)", sound); warn_about_unregistered_sound = lastmillis; } stale = true; @@ -286,7 +287,7 @@ void locvector::forcepitch(float pitch) } } -// delete all sounds except world-neutral sounds like GUI/notifacation +// delete all sounds except world-neutral sounds like GUI/notification void locvector::deleteworldobjsounds() { loopv(*this)