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
This commit is contained in:
@@ -11,9 +11,10 @@ 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 (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)
|
||||
|
||||
Reference in New Issue
Block a user