Changed: Debug messages

This commit is contained in:
kaetemi 2012-06-02 23:06:48 +02:00
parent f2fcd1fe62
commit 0f9ee4ee8c
2 changed files with 9 additions and 1 deletions

View file

@ -262,6 +262,14 @@ void CPSSound::serial(NLMISC::IStream &f) throw(NLMISC::EStream)
// version 3 : added option to keep original pitch from the .sound
sint ver = f.serialVersion(3);
// FIXME: CPSSound is reserialized from the _ParticleSystemProto
// cache when a non-_Shared particle system is instanced, this
// causes unnecessary sheet id lookups from string.
// SLN1: Serialize as uint32, but this requires the editor to know
// the correct sheet id (and thus requires a built sheet_id.bin).
// SLN2: Create a tool that reserializes all ps with sound sheet id
// instead of sheet names, based on a global flag, and serialize
// a flag that specifies if the ps is serialized with id or name.
_SoundName.serialString(f, "sound");
sint32 nbSounds;

View file

@ -112,7 +112,7 @@ CSheetId::CSheetId( const std::string& sheetName, const std::string &defaultType
{
std::string withType = sheetName + "." + defaultType;
*this = CSheetId(withType);
nldebug("SHEETID: Constructing CSheetId from name '%s' without explicit type, defaulting as '%s' to '%s'", sheetName.c_str(), defaultType.c_str(), withType.c_str());
// nldebug("SHEETID: Constructing CSheetId from name '%s' without explicit type, defaulting as '%s' to '%s'", sheetName.c_str(), defaultType.c_str(), withType.c_str());
}
else
*this = CSheetId(sheetName);