mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
TerrainTile now uses identifiers instead of pointers to VLC
This commit is contained in:
@@ -50,10 +50,10 @@ ColorRGBA CMinimapInstance::getTileColor(const int3 & pos) const
|
||||
return graphics->playerColors[player.getNum()];
|
||||
}
|
||||
|
||||
if (tile->blocked && (!tile->visitable))
|
||||
return tile->terType->minimapBlocked;
|
||||
if (tile->blocked() && !tile->visitable())
|
||||
return tile->getTerrain()->minimapBlocked;
|
||||
else
|
||||
return tile->terType->minimapUnblocked;
|
||||
return tile->getTerrain()->minimapUnblocked;
|
||||
}
|
||||
|
||||
void CMinimapInstance::refreshTile(const int3 &tile)
|
||||
|
||||
Reference in New Issue
Block a user