1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-01 00:45:32 +00:00

Issue #219: implemented death count filter

This commit is contained in:
Marc Zinnschlag 2012-11-04 13:26:04 +01:00
parent b70b8cc4bc
commit aabb1b8f3f

View file

@ -14,6 +14,7 @@
#include "../mwbase/scriptmanager.hpp"
#include "../mwbase/journal.hpp"
#include "../mwbase/windowmanager.hpp"
#include "../mwbase/mechanicsmanager.hpp"
#include "../mwworld/class.hpp"
#include "../mwworld/refdata.hpp"
@ -368,9 +369,12 @@ namespace MWDialogue
return true;
case '6'://dead
if(!selectCompare<int,int>(comp,0,select.mI)) return false;
case '6': // dead
{
std::cout<<"### "<<name<<", "<<select.mI<<", "<<MWBase::Environment::get().getMechanicsManager()->countDeaths (toLower (name))<<std::endl;
}
return selectCompare<int,int> (comp,
MWBase::Environment::get().getMechanicsManager()->countDeaths (toLower (name)), select.mI);
case '7':// not ID
if(select.mType==ESM::VT_String ||select.mType==ESM::VT_Int)//bug in morrowind here? it's not a short, it's a string