mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-06 16:04:35 +00:00
Decompile PreRender.c (#319)
* Decompile PreRender.c * use NON_EQUIVALENT and run format.sh * Get rid of some magic values * rename dList/dListp to dListHead/dList * make func_800C213C NON_MATCHING * replace more values with SCREEN_WIDTH/SCREEN_HEIGHT * dList/dListHead with gfxp/gfx
This commit is contained in:
parent
203cd19f8a
commit
bfef7f8d9d
39 changed files with 699 additions and 1585 deletions
|
@ -3594,7 +3594,7 @@ s32 func_800343CC(GlobalContext* globalCtx, Actor* actor, s16* arg2, f32 arg3, c
|
|||
|
||||
func_8002F374(globalCtx, actor, &sp26, &sp24);
|
||||
|
||||
if ((sp26 < 0) || (sp26 > 0x140) || (sp24 < 0) || (sp24 > 0xF0)) {
|
||||
if ((sp26 < 0) || (sp26 > SCREEN_WIDTH) || (sp24 < 0) || (sp24 > SCREEN_HEIGHT)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -5398,7 +5398,7 @@ s32 func_80037D98(GlobalContext* globalCtx, Actor* actor, s16 arg2, s32* arg3) {
|
|||
|
||||
if (0) {} // Necessary to match
|
||||
|
||||
if ((sp2C < 0) || (sp2C > 320) || (sp2A < 0) || (sp2A > 240)) {
|
||||
if ((sp2C < 0) || (sp2C > SCREEN_WIDTH) || (sp2A < 0) || (sp2A > SCREEN_HEIGHT)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue