-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
z_map decompiled #1032
z_map decompiled #1032
Conversation
This PR is still in draft. What is it waiting for? |
Was working on documentation before I ran out of steam.
|
|
||
#define FLOOR_INDEX_MAX 4 | ||
#define FLOOR_MIN_Y -32767 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks nicer
#define FLOOR_MIN_Y -32767 | |
#define FLOOR_MIN_Y -0x7FFF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer keep coordinates stored in decimal, to stay consistent with e.g. z64bgcheck.h
src/code/z_map_exp.c
Outdated
* Test if the current scene is in a set of overworld scenes. | ||
* @return -1 if not in the set, else returns the mapIndex of the overworld scene | ||
*/ | ||
s32 Map_GetUnkOverworldAreaIndex(PlayState* play) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bump
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with Anghelo's comment as well, but nothing new to add so going to approve.
Looks like a format is needed |
Might have demo bss issues again with the recent merges. Let me know if you want me to take a look at it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few little things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One final nit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you also please address the same comments about gDPLoadTextureBlock_Runtime.c that tharo brought up in zeldaret/oot#1896.
#ifndef GDP_LOADTEXTUREBLOCK_RUNTIME_C | ||
#define GDP_LOADTEXTUREBLOCK_RUNTIME_C | ||
|
||
#include "global.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#include "global.h" |
No description provided.