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
This commit is contained in:
Rafael Barreto
2010-10-21 22:36:46 +00:00
parent 594f4295ec
commit a3fc0cf2f5
+3 -3
View File
@@ -11,8 +11,8 @@ location::location(int sound, const worldobjreference &r, int priority) : cfg(NU
vector<soundconfig> &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)