We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c2e7752 + 998ccbd commit cb25ea0Copy full SHA for cb25ea0
1 file changed
src/hacks/Level/StartPosSwitcher.cpp
@@ -93,6 +93,15 @@ namespace eclipse::hacks::Level {
93
94
playLayer->startMusic();
95
playLayer->updateTestModeLabel();
96
+
97
+ /* Properly use attempts when switching */
98
+ // curr session
99
+ GJBaseGameLayer* gameLayer = utils::get<GJBaseGameLayer>();
100
+ gameLayer->m_attempts = gameLayer->m_attempts - 1;
101
102
+ // level total
103
+ GJGameLevel* level = gameLayer->m_level;
104
+ level->m_attempts = level->m_attempts.value() - 1;
105
};
106
107
float delay = config::get<float>("level.startpos_switcher.delay", 0.f);
0 commit comments