Skip to content

Commit

Permalink
fix MAJOR bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Sep 30, 2024
1 parent 240ca90 commit a38d516
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Fixed lag in game caused by custom fonts
- Rewrote Copy Hack to work better
- Fixed Monster Show Hitbox fix being broken with scaling
- Fixed Event Trigger not detecting player 2 jump
- Added **Custom Icon Effect Speed**

# 1.6.8
Expand Down
12 changes: 8 additions & 4 deletions src/Labels/Labels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,9 @@ void StatusNode::updateCPS(float dt)

class $modify (PlayerObject)
{
void pushButton(PlayerButton p0)
bool pushButton(PlayerButton p0)
{
PlayerObject::pushButton(p0);
auto ret = PlayerObject::pushButton(p0);

if (p0 == PlayerButton::Jump && GJBaseGameLayer::get() && GJBaseGameLayer::get()->m_player1 == this)
{
Expand All @@ -386,11 +386,13 @@ class $modify (PlayerObject)
stn->sLabels[8]->setColor(ccc3(0, 255, 0));
}
}

return ret;
}

void releaseButton(PlayerButton p0)
bool releaseButton(PlayerButton p0)
{
PlayerObject::releaseButton(p0);
auto ret = PlayerObject::releaseButton(p0);

if (p0 == PlayerButton::Jump && GJBaseGameLayer::get())
{
Expand All @@ -404,6 +406,8 @@ class $modify (PlayerObject)
stn->sLabels[8]->runAction(CCTintTo::create(1, 255, 255, 255));
}
}

return ret;
}
};

Expand Down

0 comments on commit a38d516

Please sign in to comment.