mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 03:35:27 +00:00
Remove some unnecessary debug messages
This commit is contained in:
parent
24567294ff
commit
ad6d663e09
@ -534,38 +534,20 @@ bool Animation::handleTextKey(AnimState &state, const std::string &groupname, co
|
|||||||
size_t len = evt.size() - off;
|
size_t len = evt.size() - off;
|
||||||
|
|
||||||
if(evt.compare(off, len, "start") == 0 || evt.compare(off, len, "loop start") == 0)
|
if(evt.compare(off, len, "start") == 0 || evt.compare(off, len, "loop start") == 0)
|
||||||
{
|
|
||||||
state.mLoopStartKey = key;
|
state.mLoopStartKey = key;
|
||||||
return true;
|
else if(evt.compare(off, len, "loop stop") == 0 || evt.compare(off, len, "stop") == 0)
|
||||||
}
|
|
||||||
|
|
||||||
if(evt.compare(off, len, "loop stop") == 0 || evt.compare(off, len, "stop") == 0)
|
|
||||||
{
|
{
|
||||||
if(doLoop(state))
|
if(doLoop(state))
|
||||||
{
|
{
|
||||||
if(state.mTime >= time)
|
if(state.mTime >= time)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
else if(evt.compare(off, len, "equip attach") == 0)
|
||||||
if(evt.compare(off, len, "equip attach") == 0)
|
|
||||||
{
|
|
||||||
showWeapons(true);
|
showWeapons(true);
|
||||||
return true;
|
else if(evt.compare(off, len, "unequip detach") == 0)
|
||||||
}
|
|
||||||
if(evt.compare(off, len, "unequip detach") == 0)
|
|
||||||
{
|
|
||||||
showWeapons(false);
|
showWeapons(false);
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Nothing to do for these */
|
|
||||||
if(evt.compare(off, len, "equip start") == 0 || evt.compare(off, len, "equip stop") == 0 ||
|
|
||||||
evt.compare(off, len, "unequip start") == 0 || evt.compare(off, len, "unequip stop") == 0)
|
|
||||||
return true;
|
|
||||||
|
|
||||||
std::cerr<< "Unhandled animation textkey: "<<evt <<std::endl;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -499,18 +499,14 @@ namespace MWSound
|
|||||||
soundIter = regn->mSoundList.begin();
|
soundIter = regn->mSoundList.begin();
|
||||||
while(soundIter != regn->mSoundList.end())
|
while(soundIter != regn->mSoundList.end())
|
||||||
{
|
{
|
||||||
const std::string go = soundIter->mSound.toString();
|
if(r - pos < soundIter->mChance)
|
||||||
int chance = (int) soundIter->mChance;
|
|
||||||
//std::cout << "Sound: " << go.name <<" Chance:" << chance << "\n";
|
|
||||||
soundIter++;
|
|
||||||
if(r - pos < chance)
|
|
||||||
{
|
{
|
||||||
//play sound
|
playSound(soundIter->mSound.toString(), 1.0f, 1.0f);
|
||||||
std::cout << "Sound: " << go <<" Chance:" << chance << "\n";
|
|
||||||
playSound(go, 1.0f, 1.0f);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
pos += chance;
|
pos += soundIter->mChance;
|
||||||
|
|
||||||
|
soundIter++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user