Skip to content

Commit a38d516

Browse files
author
TheSillyDoggo
committed
fix MAJOR bug
1 parent 240ca90 commit a38d516

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- Fixed lag in game caused by custom fonts
44
- Rewrote Copy Hack to work better
55
- Fixed Monster Show Hitbox fix being broken with scaling
6+
- Fixed Event Trigger not detecting player 2 jump
67
- Added **Custom Icon Effect Speed**
78

89
# 1.6.8

src/Labels/Labels.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,9 @@ void StatusNode::updateCPS(float dt)
371371

372372
class $modify (PlayerObject)
373373
{
374-
void pushButton(PlayerButton p0)
374+
bool pushButton(PlayerButton p0)
375375
{
376-
PlayerObject::pushButton(p0);
376+
auto ret = PlayerObject::pushButton(p0);
377377

378378
if (p0 == PlayerButton::Jump && GJBaseGameLayer::get() && GJBaseGameLayer::get()->m_player1 == this)
379379
{
@@ -386,11 +386,13 @@ class $modify (PlayerObject)
386386
stn->sLabels[8]->setColor(ccc3(0, 255, 0));
387387
}
388388
}
389+
390+
return ret;
389391
}
390392

391-
void releaseButton(PlayerButton p0)
393+
bool releaseButton(PlayerButton p0)
392394
{
393-
PlayerObject::releaseButton(p0);
395+
auto ret = PlayerObject::releaseButton(p0);
394396

395397
if (p0 == PlayerButton::Jump && GJBaseGameLayer::get())
396398
{
@@ -404,6 +406,8 @@ class $modify (PlayerObject)
404406
stn->sLabels[8]->runAction(CCTintTo::create(1, 255, 255, 255));
405407
}
406408
}
409+
410+
return ret;
407411
}
408412
};
409413

0 commit comments

Comments
 (0)