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)