Skip to content

Commit e3faff1

Browse files
committed
Fix GJBaseGameLayer::recordAction
1 parent afa62d4 commit e3faff1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bindings/2.2081/Extras.bro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,4 +381,5 @@ class RecordButtonCommand {
381381
bool m_isPush;
382382
bool m_isPlayer2;
383383
int m_step;
384+
int m_unk00c;
384385
}

bindings/2.2081/inline/GJBaseGameLayer.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,12 +955,13 @@ void GJBaseGameLayer::reAddToStickyGroup(GameObject* object) {
955955
}
956956

957957
void GJBaseGameLayer::recordAction(int button, bool down, bool player2) {
958-
if (m_recordInputs && !m_useReplay) {
959-
PlayerButtonCommand command;
958+
if (m_recordInputs && !m_useReplay && m_queuedRecordedButtons.size() < 100000) {
959+
RecordButtonCommand command;
960960
command.m_button = (PlayerButton)button;
961961
command.m_isPush = down;
962962
command.m_isPlayer2 = player2;
963963
command.m_step = 0;
964+
command.m_unk00c = 0;
964965
m_queuedRecordedButtons.push_back(command);
965966
}
966967
}

0 commit comments

Comments
 (0)