Remove static variable in cutscenes

This commit is contained in:
CodingJellyfish 2024-05-05 13:18:59 +08:00
parent 7d02e57a19
commit 6e2d528b91
2 changed files with 4 additions and 4 deletions

View File

@ -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"),

View File

@ -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;