Skip to content

Commit

Permalink
Remove static variable in cutscenes
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingJellyfish committed May 5, 2024
1 parent 7d02e57 commit 6e2d528
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/states_screens/feature_unlocked.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -638,8 +638,8 @@ void FeatureUnlockedCutScene::onUpdate(float dt)

assert(m_unlocked_stuff.size() > 0);

static const int w = irr_driver->getFrameSize().Width;
static const int h = irr_driver->getFrameSize().Height;
const int w = irr_driver->getFrameSize().Width;
const int h = irr_driver->getFrameSize().Height;
const irr::video::SColor color(255, 255, 255, 255);

GUIEngine::getTitleFont()->draw(_("Challenge Completed"),
Expand Down
4 changes: 2 additions & 2 deletions src/states_screens/grand_prix_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ void GrandPrixWin::onUpdate(float dt)


// ---- title
static const int w = irr_driver->getFrameSize().Width;
static const int h = irr_driver->getFrameSize().Height;
const int w = irr_driver->getFrameSize().Width;
const int h = irr_driver->getFrameSize().Height;
const irr::video::SColor color(255, 255, 255, 255);

static int test_y = 0;
Expand Down

0 comments on commit 6e2d528

Please sign in to comment.