mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-21 21:17:49 +02:00
Definitely handled #119
This commit is contained in:
parent
12f6d5a380
commit
f17adfafc7
@ -454,6 +454,11 @@ void Mapa::initFromBytes(const unsigned char * bufor)
|
|||||||
readHeader(bufor, i);
|
readHeader(bufor, i);
|
||||||
tlog0<<"\tReading header: "<<th.getDif()<<std::endl;
|
tlog0<<"\tReading header: "<<th.getDif()<<std::endl;
|
||||||
|
|
||||||
|
if (victoryCondition.condition == artifact || victoryCondition.condition == transportItem)
|
||||||
|
{ //messy, but needed
|
||||||
|
allowedArtifact[victoryCondition.ID] = false;
|
||||||
|
}
|
||||||
|
|
||||||
readRumors(bufor, i);
|
readRumors(bufor, i);
|
||||||
tlog0<<"\tReading rumors: "<<th.getDif()<<std::endl;
|
tlog0<<"\tReading rumors: "<<th.getDif()<<std::endl;
|
||||||
|
|
||||||
@ -2065,6 +2070,7 @@ void Mapa::loadQuest(CQuest * guard, const unsigned char * bufor, int & i)
|
|||||||
for(int yy=0; yy<artNumber; ++yy)
|
for(int yy=0; yy<artNumber; ++yy)
|
||||||
{
|
{
|
||||||
guard->m5arts.push_back(readNormalNr(bufor,i, 2)); i+=2;
|
guard->m5arts.push_back(readNormalNr(bufor,i, 2)); i+=2;
|
||||||
|
allowedArtifact[artNumber] = false; //these are unavaliable for random generation
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user