Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/render/MapView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2779,8 +2779,7 @@ float4 PSWater(WaterOut i) : SV_Target
return;
// A river piece's triangles where they lie on the map, and for each cell of a grid
// over them the triangles that reach into it (in their order): a point is tested
// against those only. (Every triangle for every point of every tree near a river
// took most of a second whenever an improvement or a road changed.)
// against those only.
struct RiverCells
{
std::vector<Vec3> corners; // (placed)
Expand Down Expand Up @@ -4984,6 +4983,7 @@ float4 PSWater(WaterOut i) : SV_Target
// production bars and what is being built where the active player may see them.
void MapView::drawOverlay(Overlay& overlay)
{
m->cityBars.clear();
if (!m->hasMap || !options.banners || !options.cities || options.cityScreen || m->renderer.globe())
return;
const float* vp = m->renderer.viewProjection();
Expand Down Expand Up @@ -5105,7 +5105,6 @@ float4 PSWater(WaterOut i) : SV_Target
}
return &out;
};
m->cityBars.clear();
for (const CityView& c : m->map.cities)
{
if (options.fog && !m->map.plots[size_t(c.x) + size_t(c.y) * size_t(m->map.width)].revealed)
Expand Down
3 changes: 1 addition & 2 deletions src/render/MapWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,7 @@ namespace oc4::render
// against the plot it looks at, 19 zoom levels, within 0.15 degrees): level at about
// CAMERA_LOWER_PITCH + 1.8 (29.8) up to 1.3 x CAMERA_MIN_DISTANCE (910), then easing in
// quadratically with the distance to straight down at 0.86 x CAMERA_SMALLEST_MAX_DISTANCE
// (6020). At the start distance (2200) that is 33.6 degrees above the ground; a straight
// line from 28 at 700 to 90 at 7000 gave 42.8, looking down far more steeply.
// (6020). At the start distance (2200) that is 33.6 degrees above the ground.
void updatePitch()
{
if (cityView)
Expand Down
Loading