@ -183,7 +183,7 @@ class CContextSoundContainer : public IContextSoundContainer
if(i!=NbJoker)
return;
nlassertex(i==NbJoker,("Error while adding sound '%s' into context sound container",sound->getName().toString().c_str()/*NLMISC::CStringMapper::unmap(sound->getName()).c_str()*/));
nlassertex(i==NbJoker,("Error while adding sound '%s' into context sound container", NLMISC::CStringMapper::unmap(sound->getName()).c_str()));
sintrandomValue=0;
if(UseRandom)
@ -198,7 +198,7 @@ class CContextSoundContainer : public IContextSoundContainer
}
elseif(!arg.empty())
{
nlassertex(!ok,("Error while adding sound '%s' into context sound container",sound->getName().toString().c_str()/*NLMISC::CStringMapper::unmap(sound->getName()).c_str()*/));
nlassertex(!ok,("Error while adding sound '%s' into context sound container", NLMISC::CStringMapper::unmap(sound->getName()).c_str()));
// end of the argument.
NLMISC::fromString(arg,randomValue);
arg.clear();
@ -210,13 +210,13 @@ class CContextSoundContainer : public IContextSoundContainer
// read the potential last arg.
if(!arg.empty())
{
nlassertex(!ok,("Error while adding sound '%s' into context sound container",sound->getName().toString().c_str()/*NLMISC::CStringMapper::unmap(sound->getName()).c_str()*/));
nlassertex(!ok,("Error while adding sound '%s' into context sound container", NLMISC::CStringMapper::unmap(sound->getName()).c_str()));
// end of the argument.
NLMISC::fromString(arg,randomValue);
arg.clear();
ok=true;
}
nlassertex(ok,("Error while adding sound '%s' into context sound container",sound->getName().toString().c_str()/*NLMISC::CStringMapper::unmap(sound->getName()).c_str()*/));
nlassertex(ok,("Error while adding sound '%s' into context sound container", NLMISC::CStringMapper::unmap(sound->getName()).c_str()));
}
else
@ -232,9 +232,9 @@ class CContextSoundContainer : public IContextSoundContainer
nlassertex(it!=_ContextSounds.end(),("Error wile adding soudn '%s' into context sound container",sound->getName().toString().c_str()/*NLMISC::CStringMapper::unmap(sound->getName()).c_str()*/));
nlassertex(it!=_ContextSounds.end(),("Error wile adding soudn '%s' into context sound container", NLMISC::CStringMapper::unmap(sound->getName()).c_str()));
nlwarning("Sound %s has the same context matcher as the sound %s",sound->getName().toString().c_str()/*NLMISC::CStringMapper::unmap(sound->getName()).c_str()*/,it->second->getName().toString().c_str()/*NLMISC::CStringMapper::unmap(it->second->getName()).c_str()*/);
nlwarning("Sound %s has the same context matcher as the sound %s",NLMISC::CStringMapper::unmap(sound->getName()).c_str(),NLMISC::CStringMapper::unmap(it->second->getName()).c_str());
}
}
@ -260,7 +260,7 @@ class CContextSoundContainer : public IContextSoundContainer
// no sound after, just set an event at end of current sound to stop the complex sound.
nldebug("Setting last event for sound %s in %u millisec.", _Source1->getSound()->getName().toString().c_str()/*CStringMapper::unmap(_Source1->getSound()->getName()).c_str()*/,_Source1->getSound()->getDuration());
nldebug("Setting last event for sound %s in %u millisec.",CStringMapper::unmap(_Source1->getSound()->getName()).c_str(),_Source1->getSound()->getDuration());
nlassertex(nbJoker<SoundContextNbArgs,("Error will trying to play ContextSound '%s'",_Name.toString().c_str()/*CStringMapper::unmap(_Name).c_str()*/));
nlassertex(nbJoker<SoundContextNbArgs,("Error will trying to play ContextSound '%s'", CStringMapper::unmap(_Name).c_str()));
fromString(index,contextArgIndex[nbJoker++]);
parseArg=false;
index.clear();
@ -195,13 +195,13 @@ void CContextSound::init()
}
elseif(*first=='r')
{
nlassertex(useRandom==false,("Error will trying to play ContextSound '%s'",_Name.toString().c_str()/*CStringMapper::unmap(_Name).c_str()*/));
nlassertex(useRandom==false,("Error will trying to play ContextSound '%s'", CStringMapper::unmap(_Name).c_str()));
useRandom=true;
}
}
elseif(*first=='%')
{
nlassertex(useRandom==false,("Error will trying to play ContextSound '%s'",_Name.toString().c_str()/*CStringMapper::unmap(_Name).c_str()*/));
nlassertex(useRandom==false,("Error will trying to play ContextSound '%s'", CStringMapper::unmap(_Name).c_str()));
parseArg=true;
}
}
@ -215,7 +215,7 @@ void CContextSound::init()
}
else
{
nlassertex(nbJoker<SoundContextNbArgs,("Error will trying to play ContextSound '%s'",_Name.toString().c_str()/*CStringMapper::unmap(_Name).c_str()*/));
nlassertex(nbJoker<SoundContextNbArgs,("Error will trying to play ContextSound '%s'", CStringMapper::unmap(_Name).c_str()));
fromString(index,contextArgIndex[nbJoker++]);
parseArg=false;
}
@ -247,7 +247,7 @@ void CContextSound::init()
LM_CASE_CONTAINER_CREATOR(9)
LM_CASE_CONTAINER_CREATOR(10)
default:
nlwarning("Unsuported number of context argument in context sound '%s'!",_Name.toString().c_str()/*CStringMapper::unmap(_Name).c_str()*/);
nlwarning("Unsuported number of context argument in context sound '%s'!", CStringMapper::unmap(_Name).c_str());
return;
}
// cleanup macro
@ -257,14 +257,14 @@ void CContextSound::init()
// ok, we have the container, now fill it with the sound