1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-03 00:46:55 +02:00

Various fixes and refactorings. Restored client project to solution.

This commit is contained in:
Michał W. Urbańczyk
2011-09-29 21:29:54 +00:00
parent 1282ad4573
commit 2b18e0b821
21 changed files with 235 additions and 152 deletions

View File

@ -2720,6 +2720,12 @@ DuelParameters DuelParameters::fromJSON(const std::string &fname)
ss.stacks[i].count = stackNode.Vector()[1].Float();
i++;
}
ss.heroId = n["heroid"].Float();
if(ss.heroId != -1)
BOOST_FOREACH(const JsonNode &spell, n["spells"].Vector())
ss.spells.insert(spell.Float());
}
return ret;