1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-13 23:39:41 +00:00

Works, but it seems that I miss something in referencables. I will write post on the forum.

This commit is contained in:
Marek Kochanowicz 2013-12-21 15:40:39 +01:00
parent a27441720e
commit 1811f0a71b
3 changed files with 7 additions and 8 deletions

View file

@ -30,16 +30,15 @@ void CSMTools::ReferenceableCheckStage::perform(int stage, std::vector< std::str
{ {
//Checks for books, than, when stage is above mBooksSize goes to other checks, with (stage - PrevSum) as stage. //Checks for books, than, when stage is above mBooksSize goes to other checks, with (stage - PrevSum) as stage.
if (stage <= mBooksSize) if (stage < mBooksSize)
{ {
bookCheck(stage, mReferencables.getBooks(), messages); bookCheck(stage, mReferencables.getBooks(), messages);
std::cout<<"Book checking \n";
return; return;
} }
stage -= mBooksSize; stage -= mBooksSize;
if (stage <= mActivatorsSize) if (stage < mActivatorsSize)
{ {
activatorCheck(stage, mReferencables.getActivators(), messages); activatorCheck(stage, mReferencables.getActivators(), messages);
return; return;
@ -47,7 +46,7 @@ void CSMTools::ReferenceableCheckStage::perform(int stage, std::vector< std::str
stage -= mActivatorsSize; stage -= mActivatorsSize;
if (stage <= mPotionsSize) if (stage < mPotionsSize)
{ {
potionCheck(stage, mReferencables.getPotions(), messages); potionCheck(stage, mReferencables.getPotions(), messages);
return; return;
@ -55,7 +54,7 @@ void CSMTools::ReferenceableCheckStage::perform(int stage, std::vector< std::str
stage -= mPotionsSize; stage -= mPotionsSize;
if (stage <= mApparatiSize) if (stage < mApparatiSize)
{ {
apparatusCheck(stage, mReferencables.getApparati(), messages); apparatusCheck(stage, mReferencables.getApparati(), messages);
return; return;

View file

@ -76,7 +76,7 @@ CSMDoc::Operation *CSMTools::Tools::getVerifier()
mVerifier->appendStage (new SpellCheckStage (mData.getSpells())); mVerifier->appendStage (new SpellCheckStage (mData.getSpells()));
mVerifier->appendStage( new ReferenceableCheckStage (mData.getReferenceables().getDataSet())); mVerifier->appendStage (new ReferenceableCheckStage (mData.getReferenceables().getDataSet()));
} }
return mVerifier; return mVerifier;