Skip to content

Commit

Permalink
Check if flag size changes
Browse files Browse the repository at this point in the history
  • Loading branch information
atupone committed Oct 21, 2024
1 parent 69c32e1 commit 09e4457
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/bzflag/RadarRenderer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -605,10 +605,18 @@ void RadarRenderer::render(SceneRenderer& renderer, bool blank, bool observer)
// draw them in reverse order so that the team flags
// (which come first), are drawn on top of the normal flags.
GLfloat s = BZDBCache::flagRadius > 3.0f * ps ? BZDBCache::flagRadius : 3.0f * ps;

const int maxFlags = world->getMaxFlags();

bool flagsToBeUpdated = world->areFlagsUpdated();

static GLfloat oldSize = -1.0f;
if (s != oldSize)
{
oldSize = s;
flagsToBeUpdated = true;
}

static bool drawNormalFlags = true;
if (drawNormalFlags != BZDB.isTrue("displayRadarFlags"))
{
Expand Down

0 comments on commit 09e4457

Please sign in to comment.