mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 01:26:30 +00:00
Changed: Debug messages
--HG-- branch : sound_dev
This commit is contained in:
parent
fc4d91fad2
commit
221d04642a
2 changed files with 9 additions and 1 deletions
|
@ -262,6 +262,14 @@ void CPSSound::serial(NLMISC::IStream &f) throw(NLMISC::EStream)
|
||||||
// version 3 : added option to keep original pitch from the .sound
|
// version 3 : added option to keep original pitch from the .sound
|
||||||
sint ver = f.serialVersion(3);
|
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");
|
_SoundName.serialString(f, "sound");
|
||||||
|
|
||||||
sint32 nbSounds;
|
sint32 nbSounds;
|
||||||
|
|
|
@ -112,7 +112,7 @@ CSheetId::CSheetId( const std::string& sheetName, const std::string &defaultType
|
||||||
{
|
{
|
||||||
std::string withType = sheetName + "." + defaultType;
|
std::string withType = sheetName + "." + defaultType;
|
||||||
*this = CSheetId(withType);
|
*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
|
else
|
||||||
*this = CSheetId(sheetName);
|
*this = CSheetId(sheetName);
|
||||||
|
|
Loading…
Reference in a new issue