fix belts were not drawn
This commit is contained in:
@@ -518,6 +518,21 @@ void GameWorldView::drawBuildings(QPainter& painter)
|
||||
}
|
||||
}
|
||||
|
||||
// Belt and splitter tiles (stored separately from regular buildings)
|
||||
for (const BuildingSystem::BeltTileInfo& info : m_sim->buildings().allBeltTiles())
|
||||
{
|
||||
const std::map<BuildingType, BuildingVisuals>::const_iterator it =
|
||||
m_visuals->buildings.find(info.type);
|
||||
if (it == m_visuals->buildings.end()) { continue; }
|
||||
const BuildingVisuals& bv = it->second;
|
||||
|
||||
painter.setPen(Qt::NoPen);
|
||||
painter.fillRect(tileRect(info.tile), bv.fill);
|
||||
painter.setPen(QPen(bv.outline, 1));
|
||||
painter.setBrush(Qt::NoBrush);
|
||||
painter.drawRect(tileRect(info.tile));
|
||||
}
|
||||
|
||||
painter.setOpacity(0.5);
|
||||
for (const ConstructionSite& s : m_sim->buildings().allSites())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user