Skip to content

Commit

Permalink
fix the jumping flag not being reset in UILayer
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleeym committed Apr 18, 2024
1 parent ba2065b commit 12c7a30
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/UILayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,23 @@ struct $modify(UILayer) {
return ListenerResult::Propagate;
}
PlayLayer::get()->queueButton(1, down, false);
m_p1Jumping = true;
if (down) {
m_p1Jumping = true;
} else {
m_p1Jumping = false;
}
return ListenerResult::Stop;
});
this->defineKeybind("robtop.geometry-dash/jump-p2", [this](bool down) {
if (this->isPaused()) {
return ListenerResult::Propagate;
}
PlayLayer::get()->handleButton(down, 1, false);
m_p2Jumping = true;
if (down) {
m_p2Jumping = true;
} else {
m_p2Jumping = false;
}
return ListenerResult::Stop;
});
this->defineKeybind("robtop.geometry-dash/place-checkpoint", [this](bool down) {
Expand Down

0 comments on commit 12c7a30

Please sign in to comment.