Skip to content

Commit 6ef1ead

Browse files
committed
update gd.h
1 parent f8a8b67 commit 6ef1ead

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/replay_system.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ void ReplaySystem::record_action(bool hold, bool player1, bool flip) {
77
if (is_recording()) {
88
auto gm = gd::GameManager::sharedState();
99
auto play_layer = gm->getPlayLayer();
10-
auto is_two_player = play_layer->levelSettings->twoPlayerMode;
10+
auto is_two_player = play_layer->levelSettings->m_twoPlayerMode;
1111
player1 ^= flip && gm->getGameVariable("0010");
1212
get_replay().add_action({ play_layer->player1->position.x, hold, is_two_player && !player1 });
1313
}
@@ -53,7 +53,7 @@ void ReplaySystem::on_reset() {
5353
Hooks::PlayLayer::releaseButton(play_layer, 0, true);
5454
Hooks::PlayLayer::pushButton(play_layer, 0, true);
5555
}
56-
if (play_layer->levelSettings->twoPlayerMode)
56+
if (play_layer->levelSettings->m_twoPlayerMode)
5757
record_action(false, false, false);
5858
practice_fixes.apply_checkpoint();
5959
}

0 commit comments

Comments
 (0)