mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-21 00:19:29 +02:00
Use enum instead of mix of bool's and int's for tile reveal
This commit is contained in:
@ -942,7 +942,7 @@ bool CGameInfoCallback::isInTheMap(const int3 &pos) const
|
||||
|
||||
void CGameInfoCallback::getVisibleTilesInRange(std::unordered_set<int3> &tiles, int3 pos, int radious, int3::EDistanceFormula distanceFormula) const
|
||||
{
|
||||
gs->getTilesInRange(tiles, pos, radious, *getPlayerID(), -1, distanceFormula);
|
||||
gs->getTilesInRange(tiles, pos, radious, ETileVisibility::REVEALED, *getPlayerID(), distanceFormula);
|
||||
}
|
||||
|
||||
void CGameInfoCallback::calculatePaths(const std::shared_ptr<PathfinderConfig> & config)
|
||||
@ -955,7 +955,6 @@ void CGameInfoCallback::calculatePaths( const CGHeroInstance *hero, CPathsInfo &
|
||||
gs->calculatePaths(hero, out);
|
||||
}
|
||||
|
||||
|
||||
const CArtifactInstance * CGameInfoCallback::getArtInstance( ArtifactInstanceID aid ) const
|
||||
{
|
||||
return gs->map->artInstances[aid.num];
|
||||
|
Reference in New Issue
Block a user