Skip to content

Commit

Permalink
optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
Niko committed Oct 15, 2024
1 parent 91cc423 commit 2025b0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions decompile/General/UI/UI_RenderFrame_Racing.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,11 @@ void DECOMP_UI_RenderFrame_Racing()
}
}

// === Naughty Dog Bug ===
// This block will never execute in Life Limit,
// even though original code has a block inside this IF
// that checks for Life Limit

// if you're in battle mode, while not paused
// and you do not have a life limit
if ((gameMode1 & (LIFE_LIMIT | BATTLE_MODE | PAUSE_ALL)) == BATTLE_MODE)
Expand Down
5 changes: 5 additions & 0 deletions ghidra/UI.c
Original file line number Diff line number Diff line change
Expand Up @@ -5531,6 +5531,11 @@ void FUN_80052f98(void)
}
}

// === Naughty Dog Bug ===
// This block will never execute in Life Limit,
// even though original code has a block inside this IF
// that checks for Life Limit

// if you're in battle mode, while not paused
// and you do not have a life limit
if ((*(uint *)PTR_DAT_8008d2ac & 0x802f) == 0x20)
Expand Down

0 comments on commit 2025b0f

Please sign in to comment.