Skip to content

Commit

Permalink
Allow death if pause flag 2 is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirius902 committed Oct 24, 2023
1 parent fe7816d commit ee270d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kh2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ bool die(bool mickey_counts) {
// Wait for player to have control and not be in a menu before killing.
int control = *std::bit_cast<int*>(mod + 0x2A148E8);
int pause_flag = *std::bit_cast<int*>(mod + 0xAB9054);
if (control != 0 || (pause_flag & 1) != 0)
if (control != 0 || (pause_flag & ~2) != 0)
return false;

int* player_hp = *std::bit_cast<int**>(player_ptr + 0x5C0);
Expand Down

0 comments on commit ee270d6

Please sign in to comment.