Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiLko authored Feb 25, 2024
1 parent 1588ee2 commit 8e927ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,7 @@ class $modify(GJBaseGameLayer) {
if (!mod->getSettingValue<bool>("ignore_inputs"))
GJBaseGameLayer::handleButton(holding,button,player1);

if (androidAction != nullptr) {
if (androidAction->frame == recorder.currentFrame()) {
if (mod->getSettingValue<bool>("ignore_inputs"))
GJBaseGameLayer::handleButton(holding,button,player1);
Expand All @@ -1196,6 +1197,7 @@ class $modify(GJBaseGameLayer) {
}
}
}
}
} else GJBaseGameLayer::handleButton(holding,button,player1);

} else if (recorder.state == state::recording) {
Expand Down Expand Up @@ -1362,7 +1364,6 @@ if (recorder.state == state::playing && isAndroid) {
}
recorder.currentAction++;
}
androidAction = nullptr;
if (recorder.currentAction >= recorder.macro.size()) {
if (stateLabel!=nullptr) stateLabel->removeFromParent();
clearState(true);
Expand Down

0 comments on commit 8e927ff

Please sign in to comment.