add units in config files
This commit is contained in:
@@ -352,7 +352,7 @@ QRect GameWorldView::viewportRect() const
|
||||
|
||||
float GameWorldView::asteroidLeftEdge() const
|
||||
{
|
||||
float leftX = -static_cast<float>(m_config->world.regions.asteroidWidth);
|
||||
float leftX = -static_cast<float>(m_config->world.regions.asteroidWidth_tiles);
|
||||
for (const Building& b : m_sim->buildings().allBuildings())
|
||||
{
|
||||
for (const QPoint& cell : b.bodyCells)
|
||||
@@ -368,8 +368,8 @@ float GameWorldView::asteroidLeftEdge() const
|
||||
|
||||
float GameWorldView::enemyStationRightEdge() const
|
||||
{
|
||||
float rightX = static_cast<float>(m_config->world.regions.playerBufferWidth
|
||||
+ m_config->world.regions.contestZoneWidth);
|
||||
float rightX = static_cast<float>(m_config->world.regions.playerBufferWidth_tiles
|
||||
+ m_config->world.regions.contestZoneWidth_tiles);
|
||||
m_sim->admin().forEach<StationBodyComponent, FactionComponent>(
|
||||
[&rightX](entt::entity /*e*/, const StationBodyComponent& sb, const FactionComponent& f)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user