1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fixed stacks speed and general parsing bug.

This commit is contained in:
DjWarmonger 2011-02-14 21:08:29 +00:00
parent 2f9ed138f6
commit 6db068f506
2 changed files with 5 additions and 1 deletions

View File

@ -635,6 +635,7 @@ void CCreatureHandler::loadCreatures()
b.valType = Bonus::ADDITIVE_VALUE;
b.effectRange = Bonus::NO_LIMIT;
b.additionalInfo = 0;
b.turnsRemain = 0;
BonusList bl;
loadToIt (dump2, buf, it, 3); //ignore first line
@ -886,6 +887,7 @@ void CCreatureHandler::loadStackExp(Bonus & b, BonusList & bl, std::string & src
b.type = Bonus::UNDEAD; break;
default:
tlog3 << "Not parsed bonus " << buf << mod << "\n";
return;
break;
}
break;
@ -934,6 +936,7 @@ void CCreatureHandler::loadStackExp(Bonus & b, BonusList & bl, std::string & src
break;
default:
tlog3 << "Not parsed bonus " << buf << mod << "\n";
return;
}
break;
@ -957,6 +960,7 @@ void CCreatureHandler::loadStackExp(Bonus & b, BonusList & bl, std::string & src
break;
default:
tlog3 << "Not parsed bonus " << buf << mod << "\n";
return;
break;
}
switch (mod[0])

View File

@ -582,7 +582,7 @@ namespace Selector
DLL_EXPORT CSelectFieldEqual<si32> info(&Bonus::additionalInfo, 0);
DLL_EXPORT CSelectFieldEqual<ui8> sourceType(&Bonus::source, 0);
DLL_EXPORT CSelectFieldEqual<ui8> effectRange(&Bonus::effectRange, Bonus::NO_LIMIT);
DLL_EXPORT CWillLastTurns turns;;
DLL_EXPORT CWillLastTurns turns;
CSelector DLL_EXPORT typeSybtype(TBonusType Type, TBonusSubtype Subtype)
{