mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
TerrainTile now uses identifiers instead of pointers to VLC
This commit is contained in:
@ -149,7 +149,7 @@ void RoadPlacer::drawRoads(bool secondary)
|
||||
//Do not draw roads on underground rock or water
|
||||
roads.erase_if([this](const int3& pos) -> bool
|
||||
{
|
||||
const auto* terrain = map.getTile(pos).terType;
|
||||
const auto* terrain = map.getTile(pos).getTerrain();
|
||||
return !terrain->isPassable() || !terrain->isLand();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user