1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

- removed lib headers from PCH

- fixed #1062
- correct terrain penalty check
This commit is contained in:
Ivan Savenko
2012-09-06 10:39:48 +00:00
parent ea4841045f
commit a138db7c9e
7 changed files with 65 additions and 83 deletions

View File

@@ -181,13 +181,11 @@ bool CGameInfoCallback::isAllowed( int type, int id )
void CPrivilagedInfoCallback::pickAllowedArtsSet(std::vector<const CArtifact*> &out)
{
for (int i = 0; i < 2; i++)
{
for (int j = 0; j < 3 ; j++)
{
out.push_back(VLC->arth->artifacts[getRandomArt(CArtifact::ART_TREASURE << i)]);
}
}
for (int j = 0; j < 3 ; j++)
out.push_back(VLC->arth->artifacts[getRandomArt(CArtifact::ART_TREASURE)]);
for (int j = 0; j < 3 ; j++)
out.push_back(VLC->arth->artifacts[getRandomArt(CArtifact::ART_MINOR)]);
out.push_back(VLC->arth->artifacts[getRandomArt(CArtifact::ART_MAJOR)]);
}