Skip to content

Commit

Permalink
DAMMIT
Browse files Browse the repository at this point in the history
  • Loading branch information
RayDeeUx committed Mar 14, 2024
1 parent 42b56c4 commit 17387f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class $modify(MyEndLevelLayer, EndLevelLayer) {
float windowHeight = CCDirector::get()->getWinSize().height;
float offset = getChildByIDRecursive("background")->getPositionX();
auto starContainer = getChildByIDRecursive("star-container");
if (starContainer == nullptr) auto starContainer = getChildByIDRecursive("moon-container");
if (starContainer == nullptr) starContainer = getChildByIDRecursive("moon-container");
if (starContainer) {
if (theLevel->m_stars.value() == 1) starContainer->setPositionX((windowWidth * 0.5f) + offset);
else starContainer->setPositionX((windowWidth * 0.25f) + offset);
Expand Down

0 comments on commit 17387f0

Please sign in to comment.