Document various fields and functions

This commit is contained in:
Tal Hayon
2022-08-06 15:21:41 +03:00
parent 64c2f2476d
commit 18ef0d34b4
79 changed files with 378 additions and 346 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ static u32 PlayerStateValid(EzloHintManager* this) {
case PL_STATE_DROWN:
case PL_STATE_HOLE:
case PL_STATE_CLIMB:
case PL_STATE_1B:
case PL_STATE_SINKING:
case PL_STATE_STAIRS:
return 0;
case PL_STATE_6:
+3 -2
View File
@@ -46,9 +46,10 @@ u32 sub_08058244(int i) {
s32 tmp2;
u32 tmp3;
s32 tmp4;
tmp = ((gRoomControls.scroll_y - gRoomControls.origin_y) * 0x20) / (gRoomControls.height - 0xa0);
tmp = ((gRoomControls.scroll_y - gRoomControls.origin_y) * 0x20) / (gRoomControls.height - DISPLAY_HEIGHT);
gScreen.bg1.yOffset = gRoomControls.origin_y + tmp;
tmp = (((gRoomControls.scroll_x - gRoomControls.origin_x) * gUnk_081081EC[i]) / (gRoomControls.width - 0xf0));
tmp = (((gRoomControls.scroll_x - gRoomControls.origin_x) * gUnk_081081EC[i]) /
(gRoomControls.width - DISPLAY_WIDTH));
gScreen.bg1.xOffset = tmp & 0xf;
return tmp;
}
+1 -1
View File
@@ -57,7 +57,7 @@ void sub_0805B448(StaticBackgroundManager* this) {
}
void sub_0805B474(StaticBackgroundManager* this) {
s32 tmp = ((gRoomControls.scroll_y - gRoomControls.origin_y) * 0x60) / (gRoomControls.height - 0xa0);
s32 tmp = ((gRoomControls.scroll_y - gRoomControls.origin_y) * 0x60) / (gRoomControls.height - DISPLAY_HEIGHT);
gScreen.bg3.yOffset = gRoomControls.origin_y + tmp;
gScreen.bg3.xOffset = gRoomControls.scroll_x - ((gRoomControls.width - 0x100) / 2);
}