From 594f4295eca4d4ad35f497b7ee2d0e0e585e75b4 Mon Sep 17 00:00:00 2001 From: RandumKiwi Date: Thu, 21 Oct 2010 20:42:52 +0000 Subject: [PATCH] better error message git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5783 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 691b2561..5f3b1d9c 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("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?! + 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?! stale = true; return; } @@ -283,7 +283,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)