mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-01 00:45:26 +02:00
First version that compiles
This commit is contained in:
@ -964,8 +964,8 @@ void CGameState::initGrailPosition()
|
||||
const TerrainTile &t = map->getTile(int3(x, y, z));
|
||||
if(!t.blocked
|
||||
&& !t.visitable
|
||||
&& t.terType.isLand()
|
||||
&& t.terType.isPassable()
|
||||
&& t.terType->isLand()
|
||||
&& t.terType->isPassable()
|
||||
&& (int)map->grailPos.dist2dSQ(int3(x, y, z)) <= (map->grailRadius * map->grailRadius))
|
||||
allowedPos.push_back(int3(x,y,z));
|
||||
}
|
||||
@ -1919,7 +1919,7 @@ BattleField CGameState::battleGetBattlefieldType(int3 tile, CRandomGenerator & r
|
||||
return BattleField::fromString("sand_shore");
|
||||
|
||||
return BattleField::fromString(
|
||||
*RandomGeneratorUtil::nextItem(Terrain::Manager::getInfo(t.terType).battleFields, rand));
|
||||
*RandomGeneratorUtil::nextItem(t.terType->battleFields, rand));
|
||||
}
|
||||
|
||||
UpgradeInfo CGameState::getUpgradeInfo(const CStackInstance &stack)
|
||||
@ -2101,7 +2101,7 @@ void CGameState::updateRumor()
|
||||
rumorId = *RandomGeneratorUtil::nextItem(sRumorTypes, rand);
|
||||
if(rumorId == RumorState::RUMOR_GRAIL)
|
||||
{
|
||||
rumorExtra = getTile(map->grailPos)->terType.id();
|
||||
rumorExtra = getTile(map->grailPos)->terType->id;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user